Results 1 to 2 of 2

Thread: SecurityContext does not get cleared on server restart

  1. #1
    Join Date
    May 2010
    Posts
    1

    Default 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. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    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.
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •