RE: [PHP] cookie challenge
| From: | Jay Blanchard | Date: | Fri, 23 Aug 2002 18:05:59 +0000 |
| Subject: | RE: [PHP] cookie challenge | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113826@lists.php.net to get a copy of this message | ||
[snip]
$cookiepathadmin='/clients/admin/';
$some_int=25;
......
setcookie ("adminid", $some_int, time()+15552000, $cookiepathadmin);
echo $HTTP_COOKIE_VARS["adminid"];
echo $adminid;
[/snip]
$HTTP_COOKIE_VARS contains the same initial information, but is not an
autoglobal. (Note that HTTP_COOKIE_VARS and $_COOKIE are different variables
and that PHP handles them as such) from
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.cooki
es
HTH!
Jay
***********************************************************
* Texas PHP Developers Conf Spring 2003 *
* T Bar M Resort & Conference Center *
* New Braunfels, Texas *
* San Antonio Area PHP Developers Group *
* Contact jay.blanchard@niicommunications.com *
* *
* Want to present a paper or workshop? Contact now! *
***********************************************************