Can cookies set in JavaScript be accessed in PHP and vice-versa?
Can cookies set in JavaScript be accessed in PHP and vice-versa?
yes.
is the same as the javascript way using document.cookie, and can be accessed like so in php:Code:setcookie('key', 'value');
Hope this helps.Code:echo $_COOKIE['key']; //displays value
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design
matthewbluewars (04-22-2008)
Thanks
Bookmarks