dcsimg
How to handle the session time-out parameter?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, June 29, 2007 12:34 AM

I have session time-out parameter in web.xml.

Guru can you help me how to handle this once the session is timed out like I have to display login page once the session is timed out.

Thanks.

Re: How to handle the session time-out parameter?

Posted By:   WarnerJan_Veldhuis  
Posted On:   Friday, June 29, 2007 03:04 AM

Once the user logs in, set an attribute on the session, for example session.setAttribute("loggedin", Boolean.TRUE);. Create an HttpServletFilter that checks for that value. if it's not there, redirect. Done. :)
About | Sitemap | Contact