I was supposed to record the log-off time for users. We can do it by creating a log-off button to do the record. What if user simply ignores it and closes the browser?
Thanks in advance for any advice. A piece of sample codes will be more helpful.
you can also do this by using the event onbeforeunload of the HTML tag.. but this event i think is only implemented on the IE 6.. this is more usefull if you need to do more especific things when the user close the page.. or you need more control on the log out event. this way you can stop the page from closing,redirect to other place, etc.
The script I proposed doesn't seem to work right, since it calls the function logout() every time the page is changed, not only when the browser window closes... it only works right when your web application is in a frameset page that never changes, and the
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.