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 Servlets and the fly likes Destroy session when close browser. 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 » Java » Servlets
Bookmark "Destroy session when close browser." Watch "Destroy session when close browser." New topic
Author

Destroy session when close browser.

Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Is it possible to destroy the session objects immediately he/she closes the browser?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

It is not. The browser sends no indication to the server that it has closed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Destroy session when close browser.
 
Similar Threads
Tomcat restarted and session still work?
Question Regarding Destroy Method
how to invalidate a session when browser is closed
How can I redirect from sessionDestroyed() of Session Listener
how to reject multiple logins