This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Set sessionIdLength just for one application" Watch "Set sessionIdLength just for one application" New topic
Author

Set sessionIdLength just for one application

Julio Ayala
Greenhorn

Joined: Jun 03, 2011
Posts: 15

Hello,

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: 15962
    
  19

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.
 
jQuery in Action, 2nd edition
 
subject: Set sessionIdLength just for one application
 
Similar Threads
uploads on Tomcat hosting
Deployment Prob (Geronimo)
EJB
how to customize the applications configuration using admin console
Multilingual Support