Reputation: 706
I want to remove all session variables when I shutdown tomcat. Currently if I set a session variable value I am able to get its value even after restarting the tomcat. I even tried disabling persistent sessions in tomcat but get the same results. What to do?
Upvotes: 0
Views: 727
Reputation: 2209
Just Edit your context.xml as below.
<Context>
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<Manager pathname="" />
</Context>
Knowledge is inside comment. :D
Upvotes: 2