3 Replies Latest reply on Nov 27, 2012 9:35 AM by csaltos

    How to set emptySessionPath?

    jboss_queries

      I have trouble finding how to set the emptySessionPath in the standalone.xml. We are migrating from Jboss 4.2 to Jboss 7. Please help me with this.

        • 1. Re: How to set emptySessionPath?
          guinotphil

          I'm having the same issue. Any help would be fine.Thx

          • 2. Re: How to set emptySessionPath?
            jboss_queries

            I could make this work usign this

             

            <system-properties>

                    <property name="org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR" value="false"/>

                </system-properties>

            • 3. Re: How to set emptySessionPath?
              csaltos

              You need to use a WEB-INF/web.xml file for the web_app version 3, since JBoss AS 7 does NOT support session/cookie configuration by the AJP connector as JBoss AS 4.

               

              So, just add this, to your updated web.xml file:

               

                <session-config>

                  <cookie-config>

                    <path>/</path>

                  </cookie-config>

                </session-config>

               

              And this has the same efect as the old emptySessionPath in the AJP connector of JBoss AS 4.

               

              IMPORTANT: you need ensure your web.xml uses webapp version 3. The update from old version is not dramatic !!