Store Cookie On Our Server By Loading URL - PHP

Hi Guys,

How do i go about coding in PHP so that when i load the script the server will load a URL. Now on that URL it will store cookies, i need those cookies to be stored on the server and not on the machine loading the script as the cookies will be used again by the server later on.

If someone could help me that would be great.


A cookie is a text file stored on client computer. So there is no way to store cookie on the server. But you can store a reference of that cookie on your server database.