Re: Re: Problem with cookie
| From: | Yasuo Ohgaki | Date: | Mon, 16 Jul 2001 21:43:26 +0000 |
| Subject: | Re: Re: Problem with cookie | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58122@lists.php.net to get a copy of this message | ||
"Justin Farnsworth" <jef@eyeintegrated.com> wrote in message
news:3B52D885.9C65C6D9@eyeintegrated.com...
> You may have different behaviour between browsers, but you
> are never going to be able to use this method reliably because
> of the vagaries of "times" encountered on the client side.
> Just look at the postings to this list, supposedly more
> sophisticated computer users, as some postings are dated
> 1972, last month, 2010 et cetera.
That's true :)
I usually set cookie expireation at least 100 hours or use no expiration(session
cookie) to deal with wrong clock in clients.
I guess original poster can use 'max-age' to set shorter cookie life time
safely.
(Sorry I don't use max-age, so I didn't mentioned it in previous post)
I'm interested in the claim that IE does not accept cookie which expires in less
than 7200 sec. is true or not. If this is true, for which versions.
Regards,
--
Yasuo Ohgaki
> Yasuo Ohgaki wrote:
> >
> > IE does not accept cookie expires less than 7200 sec.
> > Someone mentioned it before. (I don't verified this)
> >
> > Is this true?
> >
> > --
> > Yasuo Ohgaki
> >
> > "Mihailo Dzigurski" <mdzigurski@yahoo.com> wrote in message
> > news:JFEHKMHJNIOAKHEGBODJGEIICEAA.mdzigurski@yahoo.com...
> > > Hello,
> > >
> > > I need cookie that will expire in 15 mins. My server is in different time
> > > zone than most of my clients. When I set cookie, the cookie is already
> > > expired when it reach clients. I use setcookie("Test", "1",
> > > time()+600).
> > >
> > > This problem only happens with IE, Netscape is working fine?!
> > >
> > > Is there any solution for my problem?
> > >
> > > Regards,
> > > Mihailo.
> > >
> > >
> > > _________________________________________________________
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at
> > > http://mail.yahoo.com
> > >
> >
> > --
> > 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
>
> --
> Justin Farnsworth
> Eye Integrated Communications
> 321 South Evans - Suite 203
> Greenville, NC 27858 | Tel: (252) 353-0722