Re: cookie crumbles

From: Date: Mon, 01 Sep 2003 14:31:17 +0000
Subject: Re: cookie crumbles
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-161366@lists.php.net to get a copy of this message
John Taylor-Johnston wrote:
$StudentId = "weather.htm99999995"; if (!isset($_COOKIE["weather.htm$StudentId"]))
if(!isset($_COOKIE[$StudentID]))
{ echo "Cookie not found, not reading weather.htm$StudentId<br>"; echo "\$_COOKIE[\"weather.htm$StudentId\"]". $_COOKIE["weather.htm$StudentId"]."-<hr>"; }else{ echo "cookie found, yay! ".$_COOKIE["weather.htm$StudentId"]."-<hr>";
echo "cookie found, yay! ".$_COOKIE[$StudentId]."-<hr>";
#phpinfo(); } ?>
-- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#161366) next »