How do you change name of session cookie which defaults to jsessionid (Legacy_Onyx KB Id: 174405)

Document ID : KB000054606
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

How do you change the name of default session cookie ( jsessionid)?


Solution:

In the run.sh script in jBoss customer added a new JAVA_OPTS:

# Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME -Dorg.mortbay.jetty.servlet.SessionCookie=IDMSESSION"

-Dorg.mortbay.jetty.servlet.SessionCookie=IDMSESSION
did the trick.