Hi,
I am working on
Servlet application and creating a session when user login and after some time say 10 min if user is idle, i want to invalidate session and redirect to a
jsp page. How to implement it?
I am doing this in web.xml as below
------------------------------------------
<session-config>
<session-timeout>10</session-timeout>
</session-config>
But by this way i am not able to redirect to any jsp page(say Login.jsp).
So when user come back after 10 min and tried to do any action over this application then this through null pointer exception, as i am storing and using some parameter in session.
Please help me to resolve this problem.
Thanks in advance.