I am trying to implement session timeouts with spring security. I have web.xml and the security context setup, but I am having a problem when a user tries to access the root "/". Spring thinks that it is an invalid session (because technically it is) and redirects to /sessiontimeout.
Is there anyway to ignore this initial invalid session because the user has not logged in yet? Or differentiate between an expired session and one that is invalid?
web.xml
<session-config>
<session-timeout>1</session-timeout>
</session-config>
security context
<security:session-management invalid-session-url="/sessiontimeout" />
Or I can take the easy way out and add some javascript to each page...