I’ve a web page, where user can extend the session using AJAX call to server. If the application configured session timeout is for 30 minutes, he can extend the session for 5 minutes by pressing a button. When this user submits the pages, I need to reset this session timeout value back to the global session-timeout value.
Is it possible in Java to reset it?
or
Is it possible to read the global session-timeout value which is configured in web.xml?
EDIT:
I’m using the following code to extend the session
request.getSession().setMaxInactiveInterval(300000);
I solved it by setting the default session as a session variable on execution of an action class, then using it to reset when ever required.
I’m not sure this is the right way to solve this. but it solve my issue, at least for now.