File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes expired sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "expired sessions" Watch "expired sessions" New topic

expired sessions

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 614
HEllo all,

" sessions in the Web Application expire" ..
When the session is inactive for time more than the specified timeout in the web.xml ,the session is considered as expired.
but does that count for the sessions for which the browser window is closed?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

"the browser window is closed" is a client-side concept. The server has no idea whether the browser has been closed, the user is looking out the window, eating lunch, gone to the rest room or has fallen asleep.

Sessions expire when there has been no activity for the set perios of time regarless of why that period of inactivity has occurred.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: expired sessions
jQuery in Action, 3rd edition