Hi,
I am using Tomcat 6.0.20 and JDK 1.6. I am trying to find out if there is a
way to set cookie domain (to .mycompany.com) and cookie parameter name (from
jsessionid to abcjsessionid).

I created a setenv.bat with the following line to set the system property
for changing session cookie name (based on docs
http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html): SET
JAVA_OPTS=-Dorg.apache.
catalina.SESSION_COOKIE_NAME=abcjsession

This works fine and i do see the session cookie name is named abcjsession.

However, I am not able to figure out how to set the domain name to a custom
value (e.g. .mycompany.com).

In Weblogic these settings are specified in the weblogic.xml file and we are
trying to find the tomcat equivalent:
  <session-descriptor>
      <session-param>
          <param-name>CookieName</param-name>
          <param-value>abcjsession</param-value>
      </session-param>
      <session-param>
          <param-name>CookieDomain</param-name>
          <param-value>.mycompany.com</param-value>
      </session-param>
  </session-descriptor>

Can anyone please guide if there is a way to set cookie domain name?

thanks!
Vijay

Reply via email to