Originally posted by Manohar Karamballi:
Hai Raghav!
Thanks for ur reply. That worked out well for session time-out but still i have one problem. i.e when client exited session abnormally(say by clicking X in browser window..)
that valueUnbound is not getting triggered. What to do now? I have one more doubt regarding concepts. When client closed the Browser window is it not equilavent to terminating session?
Anticipating reply
TIA
Manohar
You are right. When an user closes the browser window abnormally, session does
not terminate automatically. For this you must check if there is an already active session by calling
request.getSession(false) while logging in. If there is, then
invalidate it. Once the old session is invalidated,
valueUnbound will be automatically called. This works only if you have something like a 'login' servlet.
------------------
Raghav.
[This message has been edited by Raghav Sam (edited July 23, 2001).]