This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

close window listener???  RSS feed

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!