Can php access javascript cookie?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ace2600
Forum Commoner
Posts: 30
Joined: Fri Jun 21, 2002 12:12 am

Can php access javascript cookie?

Post by ace2600 »

Sorry if this is an obvious no, but can php access a javascript cookie? If so how?

Thanks,
-Ace
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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....
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post 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!
ace2600
Forum Commoner
Posts: 30
Joined: Fri Jun 21, 2002 12:12 am

Post 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.
Post Reply