Retrieve JS cookie

I am having trouble retrieving JavaScript cookie with PHP.
Can someone please help me out.

Here is the JavaScript code that I write cookie with it.

[code] [/code]
And I want to retrieve it from other page with PHP.
To retrieve it with JavaScript I use this code.

[code] [/code]

Can someone please help me to do the same code with PHP?


If you have the cookie name, you can just retrieve it using the $_COOKIE superglobal.

Sponsor our Newsletter | Privacy Policy | Terms of Service