This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
" 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?
"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.