• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Set sessionIdLength just for one application

 
Greenhorn
Posts: 15
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic