Accessing cookies in PHP and Javascript
| From: | Otto Wyss | Date: | Thu, 15 Feb 2007 21:00:49 +0000 |
| Subject: | Accessing cookies in PHP and Javascript | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248928@lists.php.net to get a copy of this message | ||
Assuming I have a cookie
setcookie ("username",$_SESSION['Username'], $expires);
how can I access the same cookie in Javascript? Or how do I have to create a cookies so it's accessable as
$_COOKIE["username"]
O. Wyss