This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Session retention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session retention" Watch "Session retention" New topic
Author

Session retention

MaheshS Kumbhar
Ranch Hand

Joined: Sep 24, 2009
Posts: 188
If user is logged in with active session but closes the browser abruptly. My question is, how long the session will remain active because there's no signal for destruction of session?


I am slow but sure
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Until it expires.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Puja Mantri
Greenhorn

Joined: Sep 24, 2009
Posts: 15
session expires after the session timeout period mentioned in the web.xml. The value is specified in minutes. Default session timeout is 30 mins.
Puja Mantri
Greenhorn

Joined: Sep 24, 2009
Posts: 15
or you can invalidate the session on Window close event.
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

or you can invalidate the session on Window close event.


With Firefox, that's quite a pain actually.

cheers,
ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session retention