I m storing the sessions ids in a database table. I want to run a script that reads from the table every session id and check if this session is active or not.
I know that session information is stored in a
directory (/tmp
by default) and removed from there
when the session is closed. But if the user close his
browser without disconnecting from the session the
session file is still in the /tmp
directory.
我如何知道届会是否仍然活跃?
I have searched the session functions and didn t find anything that could help.