This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12756
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
Similar Threads
jdbc thin cliend thread problem-inactive sessions
form-based authentication - logout
tomcat down
Persistent session
Session question