Hi
How to Kill the Session if the User uses Window X Button insted of "Logout" hyperlink?? What is the default PHP session timeout and How to change it for my Site??
Check me...
Kill Session
Moderator: General Moderators
-
Black Unicorn
- Forum Commoner
- Posts: 48
- Joined: Mon Jun 16, 2003 9:19 am
- Location: United Kingdom
ah php has garbage collection. im not sure of the default but the settings can be found in your php.ini. the setting names are: session.gc_probability and session.gc_maxlifetime. i think the default for lifetime is 1440 secs. the probability works like so: if you have it at 100% then garbage collection will run every time a new session is initialised. i.e. a call to session_start() and 50% will do it 50% of the times session_start is called.
hope that helps!
James
hope that helps!
James