Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

close window listener???

 
Ricardo Gil
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
Ron Garrett
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic