Re: Re: session expired -> how to know if the session is new or old
| From: | Stuart | 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:
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. -- StuartI want to redirect my users to a session expired page and not directlyto 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 inthe morning he comes back and does something the browser will send the session id he got before sleeping.