View Full Version : Cookies
matthewbluewars
04-16-2008, 08:39 PM
Can cookies set in JavaScript be accessed in PHP and vice-versa?
thetestingsite
04-16-2008, 08:49 PM
yes.
setcookie('key', 'value');
is the same as the javascript way using document.cookie, and can be accessed like so in php:
echo $_COOKIE['key']; //displays value
Hope this helps.
matthewbluewars
04-22-2008, 01:41 AM
Thanks
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.