Announcement Announcement Module
Collapse
No announcement yet.
Message After Timeout Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    Thanks

  • #2
    I am doing something like this:

    Code:
    <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"/>
    In the controller i have the redirect for the timeout to login page:
    Code:
    @RequestMapping("/timeout.html")
    	public String timeout(final HttpSession session, final ModelMap model)
    	{
    		session.invalidate();
    		return "redirect:/login.html?timeout=true";
    	}
    And ofcourse on the login page i see what is the parameter passed and show the right message.

    Comment

    Working...
    X