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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to