This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to check browser alive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to check browser alive" Watch "How to check browser alive" New topic
Author

How to check browser alive

Sujit Joshi
Greenhorn

Joined: Apr 07, 2009
Posts: 2
Hi all,

I want to check my user is still using the application or not, for every X minutes somehow.

I can catch when he logs out if he logout properly by clicking log out link. But I can not check if close the browser.

Can anybody suggest the solution to check this?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
There is no way to determine if the user closes the browser. You really should be using a session timeout on the server to log the user out.

Eric
 
jQuery in Action, 2nd edition
 
subject: How to check browser alive
 
Similar Threads
Persistent session and HttpSession...
perform a specific task on logout/closing of browser
Problem with Ctrl-N and opening a new window
how to design logout page?
session tracking