• 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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!