The Link below shows how to set up authentication with Spring Security, including Relogin (logging back in after session timeout without losing page context). This is also a good general resource for implementation Relogin with other authentication schemes.
Page Comparison
General
Content
Integrations