Two Laptop Bag
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 17149
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set sessionIdLength just for one application
 
It's not a secret anymore!