Wednesday, October 19, 2011

Renaming Session cookie in JBoss and Tomcat

JSESSIONID is standard defined name, but in some cases it is needed to rename it. In JBoss and Tomcat it is very easy, you can do it by defining system property org.apache.catalina.JSESSIONID in JAVA_OPTS, for example:

-Dorg.apache.catalina.JSESSIONID=PC1SESSIONID

1 comment:

  1. can you please give more detail on how to do this. in which file will i put the line

    ReplyDelete