I am using Spring-Security 3.1. Before I added the session-invalid invalid-session-url attribute, it was correctly redirected to the exit page. However, by adding the wrong-session-url, it redirects to the session expiration page even by pressing the exit button. Also, after a session timeout period, if I load the login page, it is redirected to the expired session page.
I need to check the expiration of the session and redirect the user to the expired page if the session has expired. However, after using the invalid-session-url tag, it redirects me to the session end page even for a login and logout script.
Some messages recommend that you do not use the invalid-session-url. However, I cannot understand that then, how can I show the session expiration page after the expiration of the actual session.
Any help would be appreciated.
source
share