Handling session time out & monitoring max inactive intervl in user session
This question may have been asked several times earlier.
Am unable to find resource where i get complete solution for
How user session is moitored using HttpSession listener . When it is timed out what event takes place.?
How to monitor inactive interval of user and invalidate his session.
I would highly appreciate for a step by step expalination .
Am using a servlet filter where user session is started but need to monitor it amongs varios pages user requests for.
Thanks.
[520 byte] By [
princea] at [2007-11-27 9:04:44]

# 6
Hi ,
I ran into another problem using the code below
<meta http-equiv="refresh" content="<%= session.getMaxInactiveInterval() %>;url=error.jsp">
When MaxInactiveInterval Period over the error.jsp page gets displayed . But then sessionListener notifies that session gets destroyed after another 10 minutes which is set in web.xml under <session-timeout> .
Is the reason for this is page refresh is an activity and container terminates the session after 10 mins.
If so how this can be resolved ?
Thanks
prince
# 8
Yep It was there but i removed setMaxInactiveInterval() to avoid overriding the web.xml setting. Still the problem is there
Is it the "refresh" in meta tag which causes some page activity.As am noticing in HtpsessionListener the
sessionDestroyed(HttpSessionEvent arg0)method gets invoked 15 mins after the error.jsp is displayed .
I need this method be invoked immediately inorder to remove session objects from SessionMap in jsf.
Is there any other way i can acheive it.?
Thanks