Re: Q:Making an 'expired event' for sessions

From: Date: Mon, 02 Sep 2002 09:47:01 +0000
Subject: Re: Q:Making an 'expired event' for sessions
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-114889@lists.php.net to get a copy of this message
Mehran Ziadloo wrote: > Hi > Thanks for replying, > There are some settings for sessions in php.ini but I can't find the > thing that I'm looking for. > It should exist, I mean isn't there any one who needs to know when the > session has expired? > Once again I ask my question: > How to make a session_on_end event in php? > Any help will be appreciated. That's not possible. The session is there, or it's not there. You cannot check if it WAS there. Sounds to me like a nice feature though! You can always make your own solution. Like...set a cookie which says that there is a session. If the session is gone, you can check that by checking the cookie and checking for a session. If the cookie states that there is a session, but there is no session, you know that it's gone. HTH Erwin

« previous php.general (#114889) next »