Tomcat disable session persistence
When Tomcat is shutdown or restarted will always try to save all the serialized session objects to a file. If we are trying to develop an application and we are testing the session or if we want to disable this feature we have to perform a change in the context.xml file
You can find the context.xml file in the tomcat-installation/conf directory or if we are using and IDE such us eclipse in our Servers configuration folder. Add or uncoment the following xml tag.
<Manager pathname="" />
* You must restart tomcat to make this change take effect.