Sir,
I am maintaing session in database.How can i delete when the user close the window without login out.
I habe written to delete session in logout but what should i do when he close the window without logout.
ArunKumar
| SitePoint Sponsor |




Sir,
I am maintaing session in database.How can i delete when the user close the window without login out.
I habe written to delete session in logout but what should i do when he close the window without logout.
ArunKumar


There is nothing you can do about a user closing a window and going off. What you can do is have a session inactivity timer and if the session variables haven't changed in 30 minutes, destroy the session.
Mike Swiffin - Community Team Leader
Only a woman can read between the lines of a one word answer.....
I started out with nothing... and still got most of it left!
Bookmarks