Answ: [PHP] (SETCOOKIE) - Cookie not created in MSIE 5.5 ?

From: Date: Wed, 06 Dec 2000 14:52:28 +0000
Subject: Answ: [PHP] (SETCOOKIE) - Cookie not created in MSIE 5.5 ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28913@lists.php.net to get a copy of this message
Found the answer .... Problem was IE 5.x here's the code for those who are interrested : <? $myday = gmdate("D, d M Y H:i:s"); header("Expires: $myday GMT"); header("Last-Modified: $myday GMT"); header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 if (!isset($acid)) { srand((double)microtime()*1000000); $randval = rand(1,999999); Header("Location: searchpage.php\nSet-Cookie:acid=$randval;expires=Friday, 16-Jan-2037 00:00:00 GMT;\n\n"); } ?> Alain

« previous php.general (#28913) next »