Page 1 of 1

Can php access javascript cookie?

Posted: Sat Nov 09, 2002 11:28 am
by ace2600
Sorry if this is an obvious no, but can php access a javascript cookie? If so how?

Thanks,
-Ace

Posted: Sat Nov 09, 2002 12:15 pm
by volka
http://www.cookiecentral.com/faq/ ;)
it depends. These cookies are transfered like any other cookie and PHP/apache/IIS/... does not really access cookies, they are granted by the client....

Posted: Sat Nov 09, 2002 2:25 pm
by Takuma
Why not try. When creating cookie in JS you need to set name so try using $_COOKIE['WHATEVER']. Chances are it won't work but... Hey give it a go!

Posted: Sat Nov 09, 2002 4:58 pm
by ace2600
Well I dont actually need to access the javascript cookie anymore. But if anyone tries it (I probably will) please let me know.