Hi,
I want to update database when browser is closed automatically or user closes the browser. I am using javascript on unload event. but the problem is that when ever user navigate through other pages this javascrip function is called and user logged out automatically. I am working with php and mysql. Can any one help me
Thanks
Rishikesh
How To update database when browser is closed???
Moderator: General Moderators
-
RishikeshJha
- Forum Newbie
- Posts: 11
- Joined: Tue Mar 31, 2009 1:54 am
Re: How To update database when browser is closed???
There is no reliable way to check if/when the user has closed the browser.
Make them automatically log out after a period of inactivity.
Make them automatically log out after a period of inactivity.