Corr: (SETCOOKIE) - Cookie not created in MSIE 5.5 ?
| From: | Alain \"Cyb\" | Date: | Wed, 06 Dec 2000 11:31:03 +0000 |
| Subject: | Corr: (SETCOOKIE) - Cookie not created in MSIE 5.5 ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28881@lists.php.net to get a copy of this message | ||
sorry, code corrected here, but still not working :
<?
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
if (!isset($acookieid))
{
srand((double)microtime()*1000000);
$randval = rand();
setcookie("acookieid",$randval,time()+14400000,"/",".atimmo.be",0);
}
?>