my dog learned polymorphism
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

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: 13001
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!