Configure sessionIdLength for non-clustered web application in JBoss EAP 5.x
- JBoss Enterprise Application Platform (EAP)
- JBoss Enterprise Portal Platform (EPP)
- To configure the sessionIdLength for non-clustered web application
- What maximum session id length supported by Jboss?
To configure at application level:
sessionIdLengthcan be configured for the application by adding the following in
context.xmlfile inside the application as follows:
<?xml version="1.0"?> <Context debug="1" privileged="true" > <Manager sessionIdLength="100" /> </Context>
To configure at the server's container level:
Edit "context.xml" under
Note: The minimum length is 16 bytes. The maximum value is logically
Integer.MAX_VALUE (= 2147483647) but you will see
java.lang.ArrayIndexOutOfBoundsException if it causes overflow the maximum size of the request and response HTTP header (8192 bytes by default) or
java.lang.OutOfMemoryError if you set loo large value.
- Learn more
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.