Page 1 of 1

How To update database when browser is closed???

Posted: Tue Mar 31, 2009 2:44 am
by RishikeshJha
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

Re: How To update database when browser is closed???

Posted: Tue Mar 31, 2009 3:44 am
by requinix
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.