File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Session Generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Session Generation" Watch "Tomcat Session Generation" New topic

Tomcat Session Generation

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
Hi ,

Does Tomcat allways generates unique Session ids?I mean when ever you restart tomcat are there any chances we get the session id which was generated before?

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
My understanding of the servlet API is that the session ID must be unique to that particular servlet container. When restarting Tomcat it may recover sessions that were serialized when it shutdown, so it will "know" about sessions that are still active.
I agree. Here's the link:
subject: Tomcat Session Generation
It's not a secret anymore!