Re: Re: Cookie Expiry Dates?
| From: | James Holloway | Date: | Wed, 11 Jul 2001 13:06:08 +0000 |
| Subject: | Re: Re: Cookie Expiry Dates? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57365@lists.php.net to get a copy of this message | ||
You're right, I did...
Still suffering from the effects of a manic dentist this morning. ;)
James
----- Original Message -----
From: "Adrian Ciutureanu" <adrian.ciutureanu@softure.com>
To: "James Holloway" <james@towntalk.co.uk>
Cc: <php-general@lists.php.net>
Sent: Wednesday, July 11, 2001 1:58 PM
Subject: RE: [PHP] Re: Cookie Expiry Dates?
> you probably mean
> $cookie_expire = time() + 86400 * 365;
>
> > -----Original Message-----
> > From: James Holloway [mailto:james@towntalk.co.uk]
> > Sent: 11 iulie 2001 16:02
> > To: php-general@lists.php.net
> > Subject: [PHP] Re: Cookie Expiry Dates?
> >
> >
> > Hi Jeff,
> >
> > Yes, use time()
> >
> > Example.... 86400 seconds in a day. 3600 in an hour. Use some basic
> > maths:
> >
> > $cookie_expire = time() * 86400 * 365; // Sets cookie for a
> > year (365 days).
> >
> > James.
> >
> > "Jeff Lewis" <jeff@hyrum.net> wrote in message
> > news:006101c10a08$874f93c0$76a1a8c0@LEWISJCIT...
> > I'd like to set a cookie that never expires or at least one
> > that lasts a
> > month, how can I set it? Does it have to be with time?
> >
> > I am using SetCookie.
> >
> > Jeff
> >
> >
> >
> >
> > --
> > 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
> >
> >
>