Re: Re[4]: [PHP] sessions timeout
| From: | André Ventura Lemos | Date: | Wed, 10 Mar 2004 00:07:22 +0000 |
| Subject: | Re: Re[4]: [PHP] sessions timeout | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179957@lists.php.net to get a copy of this message | ||
I'll try to find another way then.
Thanks for the replies
On Wed, 2004-03-10 at 00:00, Richard Davey wrote:
> Hello André,
>
> Tuesday, March 9, 2004, 11:53:15 PM, you wrote:
>
> AVL> but since the cookie stores the session id, I thought I could keep that
> AVL> ID and bring it back.
>
> You could, but PHP will automatically clear up "expired" sessions as
> part of its garbage collection routine, which means its entirely
> possible the session data will have been removed when the user returns
> and you try retrieving it again.
>
> You could try changing the session.cookie_lifetime in your php.ini
> file, or via code by using the session_set_cookie_params() function.
>
> Please note that this will lead to excessive build up of session data
> files on your server, depending on the popularity of your site.
>
> --
> Best regards,
> Richard Davey
> http://www.phpcommunity.org/wiki/296.html
--
I/O, I/O,
It's off to disk I go,
A bit or byte to read or write,
I/O, I/O, I/O...
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc