Re: Re: session expired -> how to know if the session is new or old

From: Date: Tue, 24 Feb 2004 16:17:57 +0000
Subject: Re: Re: session expired -> how to know if the session is new or old
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-178723@lists.php.net to get a copy of this message
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

« previous php.general (#178723) next »