jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes close window listener??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "close window listener???" Watch "close window listener???" New topic

close window listener???

Ricardo Gil

Joined: Aug 06, 2001
Posts: 14
session objects are stored in server, right?
when user close your ie or nets. window(with a valid session created) the server turn this session invalid.
What�s the listener or some thing that exec this "session.invalidate"??


** SCJP1.4 **
Ron Garrett

Joined: Dec 03, 2002
Posts: 1
When a browser window is closed or the browser program is exited, there is no message sent to the web server. As far as the server knows, that session is still open.
When the session timeout occurs, then the servlet container calls the HttpSession.invalidate() method.
I agree. Here's the link: http://aspose.com/file-tools
subject: close window listener???
It's not a secret anymore!