It happens because Tomcat is allowed to serialize sessions out to the hard disk and pick them back up on restart. This is considered desirable behavior if you want to prevent it you will have to do some programming.
Thanks William. Is there any way to tell tomcat not to do so?
Author and all-around good cowpoke
Joined: Mar 22, 2000
It looks like "persistent" sessions are on by default and can be configured in the context.xml configuration file. I suspect that this configuration depends on which version of tomcat you have. In my Tomcat 5.5.20 default context.xml file I find the following;
I have not played with it - let us know what happens