I have developed an web application using JSP and deployed in tomcat server.
In that, if the user remains idle in the application for more than 5 min then their session should expire.but I don’t know how to redirect the user to the login page/home page after session timeout.
I used the following code to make the session expire
<%session.setMaxInactiveInterval(300);%>
Please give me some ideas to solve this issue.
Thanks in Advance
Raj
you can create a filter and then check for this and redirect