This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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 The Software Craftsman this week in the Agile 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: 16540

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.
Have you tried LearnNowOnline?
subject: Set sessionIdLength just for one application