Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Set sessionIdLength just for one application 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 "Set sessionIdLength just for one application" Watch "Set sessionIdLength just for one application" New topic

Set sessionIdLength just for one application

Julio Ayala

Joined: Jun 03, 2011
Posts: 15


I would like to know if it is possible to define the sessionIdLength just for one web application deployed in a tomcat6. I know that if I include

in the context.xml it will work out, but it will modify the sessionIdLength for the others applications deployed in the same server.

Thank you in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950

Why would you want to?

The session ID is nothing but a hash key for sessions. From the way the docs read, the actual session map is common to the entire Tomcat container, not one session map per Context. Which probably has to do with the fact that there is an option that permits a session to be shared across multiple webapps. So I can see where things would get messy if apps didn't have a common ID format.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Set sessionIdLength just for one application
Similar Threads
Deployment Prob (Geronimo)
how to customize the applications configuration using admin console
Multilingual Support
uploads on Tomcat hosting