wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "close window listener???" Watch "close window listener???" New topic
Author

close window listener???

Ricardo Gil
Greenhorn

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"??

thanks..


** SCJP1.4 **
Ron Garrett
Greenhorn

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???
 
Similar Threads
Closing popup windows that have timed out
Stopping a backend process if user closes the browser window
this function disable close window
Session retention
when is the destroy method called?