I have written code using struts. I want to invalidate the session if the user is idle for 10 minutes. I want to write the code in servlets but not in jsp. can anyone suggest?
Asked
Active
Viewed 47 times
-3
-
Please post the code you have tried , which will SO members to suggest you the solution. As we can post you the entire solution – Santhosh Dec 10 '13 at 07:27
-
It is almost impossible to give help with the provided information. Try telling us what you have already tried, perhaps show us the code you have and be specific with what part you need help with. Stack overflow is not meant as a consultancy firm doing your work but a community where you can make use of others knowledge. But be specific and show us that you have made an effort and I am sure that you soon will get help with your problem. With respect. – qrikko Dec 10 '13 at 07:44
1 Answers
1
In web.xml
put
<session-config>
<session-timeout>
10
</session-timeout>
</session-config>

Robin Green
- 32,079
- 16
- 104
- 187