2 Replies Latest reply on Jul 25, 2019 6:26 AM by p.arumugam

    Wildfly session is not working in Google Chrome

    p.arumugam

      I am facing error while deploying application using Wildfly.

      App is deployed in Windows servers and using revers proxy using IIS. What I have seen that app is working in IE but not in Chrome.

      Furthermore, It has been found that multiple JSESSION ID is getting generated in when I use Google Chrome which is ending up with error - Error in ApplicationRequestHandler : : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

      Please refer - https://snag.gy/TUCGYQ.jpg for Chrome and https://snag.gy/F5xu3X.jpg for IE

      https://snag.gy/TUCGYQ.jpg

      Tried to setup cookie path in web.xml but nothing is working and it would be great if someone can help

        • 1. Re: Wildfly session is not working in Google Chrome
          ctomc

          your cookie path includes double slash '//' instead of singular '/'

           

          that is what probably causes the issue. you will need to tweak you config to address that

          • 2. Re: Wildfly session is not working in Google Chrome
            p.arumugam

            Good Catch Tomaz.

             

            I am able to resolve issue by modifying certain lines and ending up with following line of code in web.xml.

             

            <session-config> 

                    <cookie-config> 

                        <path>/some_path/</path> 

                        <name>JSESSIONID</name> 

                        <http-only>true</http-only> 

                        <secure>true</secure> 

                    </cookie-config> 

                </session-config>