Announcement Announcement Module
Collapse
No announcement yet.
SecurityContext does not get cleared on server restart Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SecurityContext does not get cleared on server restart

    Hi All

    When I login in my application and the tomcat server restarts then also the current security context is maintained from the browser. I want to clear the security context as soon as the server shuts down. I thought that spring will be doing this automatically but this is not the case.
    Please advise on how to do it.
    Thanks
    Ritula

  • #2
    SecurityContext is stored in the user's HttpSession on the server. If your servlet container / app server persists sessions and restores them after restart, it's working as expected.

    Comment

    Working...
    X