Re: session expired -> how to know if the session is new or old
| From: | Jakes | Date: | Tue, 24 Feb 2004 14:16:56 +0000 |
| Subject: | Re: session expired -> how to know if the session is new or old | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178697@lists.php.net to get a copy of this message | ||
What do you need this for.? You session is only suppose to last for one
browser session
"Catalin Trifu" <catalin@isp-software.de> wrote in message
news:20040224140514.49641.qmail@pb1.pair.com...
> Hi,
>
> Here is the problem:
>
> The session gc runs and deletes the session data. This is good,
> but calling session_start in PHP obviously creates a new session.
>
> How can I know if the session was created after an old one was
> deleted because gc has invalidated it or it is a completely fresh session,
> from let's say a fresh browser window.
>
> I googled for it and looked in the docs but I found nothing on this
> matter.
>
> Thanks in advance,
> Catalin