Re: Re[2]: [PHP] sessions timeout
| From: | André Ventura Lemos | Date: | Tue, 09 Mar 2004 23:53:15 +0000 |
| Subject: | Re: Re[2]: [PHP] sessions timeout | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179955@lists.php.net to get a copy of this message | ||
but since the cookie stores the session id, I thought I could keep that
ID and bring it back.
could you show me some code, or point me to some example?
Thanks
On Tue, 2004-03-09 at 23:48, Richard Davey wrote:
> Hello André,
>
> Tuesday, March 9, 2004, 11:41:04 PM, you wrote:
>
> AVL> But my question is, since I don't deal with cookies directly (PHP does
> AVL> that for me), 'cause I only have to deal with sessions, how can I change
> AVL> the cookies produced by PHP?
>
> AVL> atm I only session_start() and use the $_SESSION[''], so I don't really
> AVL> know which cookie to change, or how to do it.
>
> In that case the reason the session expires when the browser closes is
> because that is what sessions are designed to do. In order to "bring
> them back" you need to issue a cookie of your own that keeps track and
> re-builds the session when they return.
>
> --
> 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