3 Replies Latest reply on Aug 16, 2011 5:38 AM by popty

    session cookie name

    rossog

      Hi everybody, I was looking for a way to change session cookie name JSESSIONID. Digging through the docs I could find a lot of questions, but not a real answer.

      As far as I can see, on Tomcat 6 onward is possible to change sessionid name from JSESSIONID to whatever with:

      Dorg.apache.catalina.SESSION_COOKIE_NAME=XXXSESSIONID
      Dorg.apache.catalina.SESSION_PARAMETER_NAME=xxxsessionid

      And changing worker accordingly:

      worker.server.session_cookie=XXXSESSIONID

      On JBoss 5 I couldn't manage to make it work, and looking at jira looks like there's still something missing. Am I wrong?

      Thanks.

       

      Env: JBoss 5  on JDK 1.6 and Httpd 2.2, RH Linux 5.

        • 1. Re: session cookie name
          jfclere

          Try:

          org.apache.catalina.JSESSIONID

          org.apache.catalina.jsessionid

          • 2. Re: session cookie name
            rossog

            Thanks, it works perfectly.

            • 3. Re: session cookie name
              popty

              Hello, I work on an application web that I USE JBoss 5,1 and I do not know there is a means to configure the cookie, and how to convert the name JSESSIONID into a different name, for example MysessionUser1. That is it possible by the file jboss-web.xml without needing to touch at the code

               

              excuse me for my bad English

              Thank you for your assistance