Question:
How do you check to see if a session has timed out?
Summary:
I know that session_cache_expire only returns the value set to session.cache_expire in the php.ini file, so I don't believe that will help.
The session.cookie_lifetime value is set to zero as well.
[FONT=courier new]I know this has been discussed in other threads up to certain points, such as in the thread entitled ' i want my session to timeout after 10 minutes'.
I really don't want a JavaScript solution as suggested in that thread...[/FONT]
However is there a way to check if a session has timed out?
Pseudo Code:
if(session.timeout == true)
{
.... do something ....
}
Thoughts, suggestions or examples would be greatly appreciated!
Thank you.