how can i make a redirect when the session expires in a jsp?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Javier_Sanchez
Posted On:   Thursday, May 9, 2002 10:04 AM

i have a web based mail with jsp and servlets, but if i left 30 min of no action in the jsp and then i make a request throws a NullPointerException in the servlet, i already set the session-config to -1 in the web.xml file but it still happen, so i want to redirect to the login page when the session expires, how can i do this?

Thanks

Re: how can i make a redirect when the session expires in a jsp?

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, May 9, 2002 01:01 PM


<%
HttpSession mySession = request.getSession();
if (null == mySession) {
%>

<%
}

About | Sitemap | Contact