Is it possible to turn off HTTP session timeout in Spring Security?
From this answer I see that the HTTP session timeout can be modified in web.xml like this:
<session-config>
<session-timeout>10</session-timeout>
</session-config>
But I did not find from the Spring Security manuals how to disable the timeout.
From this answer I see that the Spring Security uses a javax.servlet.http.HttpSession internally, which according to this manual page can be set to never expire by calling method setMaxInactiveInterval(0).
Therefore it should be possible to change the session timeout by obtaining the HttpSession (as shown here in an answer) and changing the maxInactiveInterval to 0. My question is, if I will do this the first time after the user has logged in, will the change persist in the HttpSession (i.e., in a next request, will the change in HttpSession will be still there?)
And is it possible to disable the session timeout in web.xml like this or not?
<session-config>
<session-timeout>0</session-timeout>
</session-config>
And another question, what is the default HTTP session timeout in Spring Security?