Top community members
All Wiki Articles Create Wiki Article

Welcome to Dirask IT community! ‚̧ ūüíĽ
We are community that shares solutions with each other.

If you think you have something to add here.

you are welcome with your fresh ideas - List Articles

Tomcat - set JSESSIONID length / set session id length

0 contributions
2 points

In this article we would like to show how to set length of value for JSESSIONID cookie (session id) in Tomcat Server. The session id length configuration is located inside context.xml.

Simple steps:

  1. go to Tomcat configuration directory,
    e.g. in Windows it can be:
    C:\Program Files\Apache Software Foundation\apache-tomcat-8.0.46\conf
    e.g. in Debian Linux it can be:
    /var/lib/tomcat8/conf/context.xml
  2. open context.xml,
  3. add sessionIdLength attribute to Manager element,
    e.g. 50 characters per session id:
    <Manager sessionIdLength="50" />

Example config file:

Example in which place of context.xml file, set length of JSESSIONID (session id) for Tomcat server.
Example in which place of context.xml file, set length of JSESSIONID (session id) for Tomcat server.
0 contributions

Checkout latest Findings & News:

Checkout latest questions:

Checkout latest wiki articles:

Hey ūüĎč
Would you like to know what we do?
  • Dirask is IT community, where we share coding knowledge and help each other to solve coding problems.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.
Read more