I am looking for a way to call a session_unset() and then Session_destory () when a client exits the browser while still being looged in.
I have the facility to "log out" an a page which is fine if the client uses this. But if they simply close the browser the sessions remain. I am having to delete all the sessions from the server manually.
I have tried
<body onUnload="endsessions.php">
This then opens a simple page which unsets the sessions then destorys them. How ever I cannot find a way for this to close by itself.
Any ideas ?
Or is the lifetime of a session determined in the php.ini file ?
TWCMAD