May 26th, 2010, 11:49 AM
SecurityContext does not get cleared on server restart
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.
May 26th, 2010, 02:33 PM
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