Page 1 of 1
checling that a session has expired
Posted: Thu Dec 30, 2004 9:18 am
by pelegk2
1)how can i check that a session has expired?
2)how can i check how much time left unttil a session will expire?
thnaks i advance
Posted: Thu Dec 30, 2004 9:24 am
by feyd
the session expires on it's own, using the settings your php install has for session cookie lifetime.
Posted: Thu Dec 30, 2004 9:28 am
by pelegk2
i know that !
but it still dosent answer ny of my Q

Posted: Thu Dec 30, 2004 9:31 am
by feyd
okay,
1. you can't really as long as you use autohandled sessions. (you can always have a "special" value in their session, and if that value disappears, it's a new session..)
2. that isn't possible with autohandled sessions. As long as the session hasn't expired, there is no time limit.
Since sessions technically only expire when the user closes their browser (or clears their cookies) .....