2 Replies Latest reply on Dec 1, 2004 1:53 AM by cboatwright

    SessionID generation in Tomcat 5.0.x

      I am trying to migrating a session managemet WebApp from Weblogic to JBoss 3.2.4, which then need to be in a cluster.
      However, the sessionid is being generated has 2 trailing ** (example "kuSZHdwUoLnG0QDi-zvKPg**") which then breaks the application. Sometimes I even see white space within the sessionId.

      Is any way that I can remove those trailing "**" from being generated?

      Thanks


        • 1. Re: SessionID generation in Tomcat 5.0.x
          martino

          I have exactly the same problem....
          Is it possible to specify how JBossWEB component generate session id? (algorithm)?

          • 2. Re: SessionID generation in Tomcat 5.0.x
            cboatwright

            You can set "SessionIdAlphabet" in deploy/jbossweb-tomcat50.sar/META-INF/jboss-service.xml, at least with JBoss 3.2.6

            <server>
             <mbean code="org.jboss.web.tomcat.tc5.Tomcat5"
             name="jboss.web:service=WebServer">
            
             ... other attributes here ...
            
             <attribute name="SessionIdAlphabet">ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-*</attribute>
            
             ... other attributes here ...
            
             </mbean>
            </server>


            I think it must be 65 unique characters.

            Colin