Re: Bug Y2K in the setcookie and the IE

From: Date: Fri, 07 Jul 2000 20:41:19 +0000
Subject: Re: Bug Y2K in the setcookie and the IE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5450@lists.php.net to get a copy of this message
No it is a bug with Internet Explorer. See my response to your earlier post titled "[PHP] bug in IE 5.0 with cookie" for the full explanation. The short answer is when you set time in a cookie you have to also set the path. Netscape works without setting the path but IE doesnt. Dont do this: setcookie ("cookie_name", "value", time()+3600); Do this: setcookie ("cookie_name", "value", time()+3600 , "/"); Solves your problem. Virtually Yours Dan Krumlauf

« previous php.general (#5450) next »