Re: Session's length.
| From: | Joel Colombo | Date: | Sat, 22 Mar 2003 18:52:20 +0000 |
| Subject: | Re: Session's length. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140703@lists.php.net to get a copy of this message | ||
from the user posts at php.net
http://www.php.net/manual/en/function.session-set-cookie-params.php
The idea of a session is that it ends when the user closes the browser
(maybe even before hand). If you want a cookie to last longer, than use the
setcookie() function.
-Kevin
Sent out by
Joel Colombo
"L0vch1y" <lovchiy@satiric.ru> wrote in message
news:761992835.20030322191043@satiric.ru...
> -> php-general.
>
> I used such code:
>
> $exp = 60*60*24*10; # for ten days.
> session_set_cookie_params($exp);
>
> But it works wrong - cookies were removed right after i have rebooted.
> The other way is to put session id into the cookies, but...
> Isn't it the same?
>
> Thank you.
>
>
> Yours, L0vCh1Y [lovchiy@satiric.ru]
>