Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session preserved across Tomcat restarts ?

 
Vikrant Pandit
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am accessing my web application . Then I restarted tomcat . Then I again hit my web app from same web app.

And I am getting the same session with all attributes intact .


Does the Servlet Spec. talk about it ?

Thanks
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat using Session Persistence to help retreive a session after it shutdowns or crashes. It's also used within clustered environments. I think that it's enabled by default, but uou can disable it.
I don't think that it's part of the specification (except the part on distributed environments).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic