(SETCOOKIE) - Cookie not created in MSIE 5.5 ?

From: Date: Wed, 06 Dec 2000 13:08:14 +0000
Subject: (SETCOOKIE) - Cookie not created in MSIE 5.5 ?
Groups: php.general 
Request: Send a blank email to php-general+get-28888@lists.php.net to get a copy of this message
huh , bounced ? ----- Original Message ----- From: "Alain "Cyb"" <alain.cyberspace@skynet.be> To: "PHPLIST" <php-general@lists.php.net> Sent: Wednesday, December 06, 2000 11:50 AM Subject: (SETCOOKIE) - Cookie not created in MSIE 5.5 ? > Server is Running Apache > Client side is MS Win 2K with IE 5.5. > > Below is the code I set to create the cookie,I know it exists because I read > it in the page below in the body : > > /* CODE TO READ COOKIE VALUE*/ > /*...*/ > $atimmo_cookie_id = $HTTP_COOKIE_VARS["atimmo_cookie_id"]; > echo "<p align=\"center\">$atimmo_cookie_id</p></div>"; > /*...*/ > And it gives me a value... > > /*Here's the code to set the cookie*/ > /*...*/ > <? > if (!isset($atimmo_cookie_id)) > { > srand((double)microtime()*1000000); > $randval = rand(); > > > setcookie("atimmo_cookie_id",$randval,time()+14400000,"/",".atimmo.be",0); > echo "<meta http-equiv=\"Refresh\" content=\"0\" > url=\"./searchpage.php\">"; > } > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // > always > modified > header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 > header("Pragma: no-cache"); // HTTP/1.0 > ?> > /*...*/ > > This bit of code is , of course sent before anything on the page (right on > top, no blanks, etc...) > > > So, it reads the cookie alright... but I've done a complete search on the > client system and I can't find it ! > (have done a full search of the cookie name and it's value... nothing !) > > LOL.... this is drivin' me nuts ! > > > Alain > >

« previous php.general (#28888) next »