aspose file tools
The moose likes Servlets and the fly likes Destroy session when close browser. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 56529
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Destroy session when close browser.
 
Similar Threads
how to reject multiple logins
Tomcat restarted and session still work?
how to invalidate a session when browser is closed
Question Regarding Destroy Method
How can I redirect from sessionDestroyed() of Session Listener