Totally Zenned
- Join Date:
- Nov 2005
- Location:
- France
- Posts:
- 588
- Plugin Contributions:
- 1
How to detect when the session has expired so i can run a clean up script
Hi,
Is there a built in function that i can use to trigger a php script to run when a session id has expired?
I'm temporarily writing information to a database and using $_SESSION['securityToken']; to ensure this data is only viewed by that session user. However, over time, this table will get bloated. I want to run a script to delete all data for the given session id once the time has expired.
Thanks