Re: cookies and clocks

From: Date: Thu, 26 Apr 2001 00:45:24 +0000
Subject: Re: cookies and clocks
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50402@lists.php.net to get a copy of this message
On Wed, 25 Apr 2001 17:32:44 -0700, DanO (sfsitebuilder@sfsitebuilder.com) wrote: >look at it this way: > >you are dealing with an INTERVAL of time, thus the only reason you >really need javascript is in the construction of a date object. as far as I know the only way to set a cookie's expiration is with an exact GMT timestamp. If there were a way to tell a browser "1 hour from now" then this would solve my problem. >you can either import that object into php as a string, or you can >actually go the extra mile and set the cookie in javascript. right. I hate to do this though. I guess I'm asking if someone out there has had this problem and found a good way around it. thanks, - Mark >HTH, >DanO > > >"Mark Maggelet" <maggelet@mminternet.com> wrote in message >news:200104260016.RAA29805@medusa.mminternet.com... >I have a cookie that times out after an hour for security reasons. >About 1 out of 200 of my users send me an email saying they can't log >into my site and I find out that it's usually because their clocks >are off. Has anyone had any luck using the time on the client to set >cookies by instead of server time? I hate using javascript for this >but I don't see much choice. > >thanks, >- Mark > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list- >admin@lists.php.net > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list- >admin@lists.php.net

« previous php.general (#50402) next »