Re: Cannot Set ExpireTime in a cookie
| From: | Richard Lynch | Date: | Thu, 09 Aug 2001 19:05:42 +0000 |
| Subject: | Re: Cannot Set ExpireTime in a cookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-62056@lists.php.net to get a copy of this message | ||
> I discovered that the bit that Internet Explorer 4.0 didn't recognize a
> cookie as valid when I included an expiration time.
> This Doesn't Work:
> setcookie ("ArtPrintSession",$SessionID,time()+3600);
> What's the bug???
IE.
IE read the spec about "optional arguments" and decided that if you wanted
to provide an expiration time, you had to provide a path as well.
Try:
setcookie ("ArtPrintSession",$SessionID,time()+3600, '/');
Moral: Microsoft can't even follow their *OWN* specs, much less somebody
else's.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm