What happens to a session when we close the browser ?
It is it removed by AppServer when session times out ? or browser sends a message to Server that it is being closed, so that Appserver can remove that corresponding session.
Thanks,
Badrish
-
Session Timeout (1 messages)
- Posted by: Badrish Agarwal
- Posted on: December 11 2003 07:00 EST
Threaded Messages (1)
- Session Timeout by Paul Strack on December 11 2003 13:23 EST
-
Session Timeout[ Go to top ]
- Posted by: Paul Strack
- Posted on: December 11 2003 13:23 EST
- in response to Badrish Agarwal
The browser does not inform the server when it exits. Your options are:
1) Really on session timeout.
2) Create a "logout" page, so that the user can inform the server that they are done. The server can then call session.invalidate() to destroy the session.
In practice, you may want to do both, since user's frequently neglect to logout of web applications.