Message After Timeout
When a user times out of my application they are successfully logged out of my application via Acegi. My problem lies in that I can't figure out how to carry the log out reason over to inform the user since the session is killed. I know the solution is probably something simple, but I am not having any luck. I tried creating my own SecurityContextLogoutHandler but everything I try gets blown away when I invalidate the session.
I am doing something like this:
In the controller i have the redirect for the timeout to login page:
<logout logout-success-url="/login.html" invalidate-session="true" logout-url="/logout.html"/>
<logout logout-success-url="/login.html" invalidate-session="true" logout-url="/timeout.html"/>
And ofcourse on the login page i see what is the parameter passed and show the right message.
public String timeout(final HttpSession session, final ModelMap model)