Re: Re: session expired -> how to know if the session is new or old
| From: | Catalin Trifu | Date: | Tue, 24 Feb 2004 16:29:37 +0000 |
| Subject: | Re: Re: session expired -> how to know if the session is new or old | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178727@lists.php.net to get a copy of this message | ||
Thanks for the response.
Indeed it seems this is the only way to achieve what I want.
It would be nice if the PHP guys would implement such functionality.
Catalin
"Stuart" <lists@sharedserver.net> wrote in message
news:403B7935.3030105@sharedserver.net...
> Catalin Trifu wrote:
> > I want to redirect my users to a session expired page and not
directly
> > to
> > a blank login page based on wheter this is just a gc colected session.
> > In case the user goes to sleep but leaves the browser open and then
in
> > the
> > morning he comes back and does something the browser will send the
> > session id he got before sleeping.
>
> The only way to accomplish this is to keep a persistant cookie updated
> with the last time they used a session. Then if someone comes to the
> site without a session, check for that cookie and present the
> appropriate page. However, this seems like a lot of effort for little
> gain to me.
>
> --
> Stuart