+ Make sure you have added the listener to your web.xml file. It is essential to make sure that the Spring Security session registry is
+ notified when a session is destroyed. Without it, the session information will not be removed from the registry.
+
+ <listener>
+ <listener-classorg.springframework.security.ui.session.HttpSessionEventPublisher</listener-class>
+ </listener>
+
+
+