Re: Re: setting cookies so the cookie will expire when the user's session ends.
| From: | Ken Sommers | Date: | Fri, 06 Jul 2001 05:42:38 +0000 |
| Subject: | Re: Re: setting cookies so the cookie will expire when the user's session ends. | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10111@lists.php.net to get a copy of this message | ||
Kelvin,
thanks,
do you believe or hopefully even know that that expiration time for this
cookie:
setcookie ("TestCookie", $value,time()+3600); /* expire in 1 hour */
will be one hour after the cookie is set OR
one hour after the session expires?
Ken
"Kelvin" <kelvinyip@hotmail.com> wrote in message
news:20010705220638.33241.qmail@pb1.pair.com...
> Hi Ken,
>
> Do not specific the time in your cookie.
>
> ex: setcookie("usercookie","$username");
> once the user close the session, it will terminate the cookie.
>
> Kelvin.
>
>
> "Ken Sommers" <mrsql.php@worldnet.att.net> wrote in message
> news:001701c1056d$2cb7c620$ca42500c@zeospantera...
> > Hello,
> > any way to set cookies so the cookie will expire when the user's session
> > ends.
> >
> > IN PHP 4?
> >
> > Ken
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
----- Original Message -----
From: "Kelvin" <kelvinyip@hotmail.com>
To: <php-db@lists.php.net>
Sent: Thursday, July 05, 2001 3:11 PM
Subject: [PHP-DB] Re: setting cookies so the cookie will expire when the
user's session ends.
> Hi Ken,
>
> Do not specific the time in your cookie.
>
> ex: setcookie("usercookie","$username");
> once the user close the session, it will terminate the cookie.
>
> Kelvin.
>
>
> "Ken Sommers" <mrsql.php@worldnet.att.net> wrote in message
> news:001701c1056d$2cb7c620$ca42500c@zeospantera...
> > Hello,
> > any way to set cookies so the cookie will expire when the user's session
> > ends.
> >
> > IN PHP 4?
> >
> > Ken
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>