A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
Joined: May 13, 2011
May 14, 2011 23:21:18
I was searching how to capture the window closing event in
script. Is there any way out in java script, if not through any other technology for jsp pages.
I need to update the save the logout details of the user when the window is closed instead of user doing logout.
Joined: Nov 08, 2001
May 15, 2011 06:47:10
but it is fired for page refreshes, navigating to other pages, and closing. No way to tell the difference.
Also what happens when people put computer to sleep, have no internet connection all of the sudden, browser crashes, etc. That event would never fire.
Only way to really do it is with session end on the server.
I agree. Here's the link:
Logout when exit
Can logout be implemented?
applet refresh event
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014