What i want when the session will expired in two minute then i want to transfer user back to the login page so what i need to do?
Currently I have written this line of code to invalidate the session in web.xml.
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<session-config>
<session-timeout>2</session-timeout>
</session-config>
</web-app>