It seems sessions are not serialized to SESSIONS.ser when we manually stop Tomcat by executing the shutdown.sh script. Thus, if we restart Tomcat by executing the startup.sh script, previous active sessions are lost. However, if we stop a particular application via the Tomcat Manager, the SESSIONS.ser file is created and sessions are restored successfully after the application is started again via the Tomcat Manager. Not sure if previous versions of Tomcat 7 have the same problem, but 7.0.19 is affected. Tomcat 6 works fine. Thank you very much!
This works for me with the latest 7.0.x code and the most recent change in this area was to fix a bug in 7.0.17. This looks like a configuration problem so please use the users mailing list for assistance.
Hello Mark, You're totally right, it works well on 7.0.19. I was trying this on a server with 7.0.16 while all my other servers already run 7.0.19. I didn't realise this one hadn't been updated to the latest version. Please accept my apologies for making you loose your time testing this. Regards, Johnas.
*** This bug has been marked as a duplicate of bug 51310 ***