This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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:
subject: close window listener???
jQuery in Action, 3rd edition