View Full Version : Cookies
matthewbluewars
04-16-2008, 07:39 PM
Can cookies set in JavaScript be accessed in PHP and vice-versa?
thetestingsite
04-16-2008, 07: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, 12:41 AM
Thanks
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.