Re: Cookie Question

From: Date: Wed, 28 Jun 2006 02:22:46 +0000
Subject: Re: Cookie Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-238760@lists.php.net to get a copy of this message
Because their clock is set wrong on their computer... Better to set a very long timeout and then handle the expiration yourself. Sorry. On Fri, June 23, 2006 5:26 pm, Tom Ray [Lists] wrote: > I've run into something rather odd with cookies today. I'm working > with > this admin section on a site and I'm setting a cookie that is supposed > to be good for one hour. So in the cookie I have time()+3600 and all > was > well or that was until someone fired up IE. It seems that IE refused > to > set the cookie. After much swearing at IE, I found that if I set it to > time()+7200 the cookie would be set. > > Not if that wasn't odd enough, in Firefox if I logged in at 6PM the > cookie said it would expire at 8PM which is correct. However, when I > logged in via IE at 6PM it said the cookie would expire at 23:00 hours > (11PM for those who don't know)...so my question is...why is this > happening and why does IE do this? I checked in Opera, Mozilla and > Netscape and they all work the same as Firefox..... > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#238760) next »