Re: session_set_cookie_params
| From: | Richard Lynch | Date: | Thu, 21 Dec 2000 00:05:35 +0000 |
| Subject: | Re: session_set_cookie_params | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31342@lists.php.net to get a copy of this message | ||
I think if you send an empty cookie, and then another that has the value you
want with the time you want, the browser will do the right thing...
But the order is critical, so you may have to actually do this on two
separate page hits.
----- Original Message -----
From: "Samuel Luescher" <samuel@luescher.org>
Newsgroups: php.general
Sent: Wednesday, December 20, 2000 3:10 PM
Subject: [PHP] session_set_cookie_params
> i have a problem with the session cookie expiration. i'm writing a login
> module based upon a session that is started on every page request to store
> the data of the user that is currently logged in. now i want a "remember
me"
> checkbox that makes the module set the expiration time to a certain value.
> the problem is that if this expiration time > 0 is not set on the FIRST
page
> request after opening the browser (i.e. the request that would only
display
> the login form), it is already set to zero and the set_cookie_params
> function does not alter the expiration time afterwards.
> how can i reset the expiration time of a session if the browser has
already
> a cookie (with lifetime zero) in memory?
>
> tia, sam
>
>
> --
> 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
>