I have a Java Servlet app with session tracking mechanism using HTTPSessionListener. Front end script of my app periodically makes ajax calls to the server after 10 seconds. I have set session timeout to 1 minute.
Session timeout doesn't seem to honor the ajax requests. The session gets destroyed after a minute. How can I prevent this?
I have set the timeout using:
<session-config>
<session-timeout>1</session-timeout>
</session-config>
When actually a session timeout occurs?