legacy-knowledge-base
Publicado Sep. 25, 2010

HttpOnly flag in JSESSIONID cookie using JBOSS application server

written-by

Matheus Monteiro

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • JSESSIONID cookie does not contain the HttpOnly flag.Screen_Shot_2020-08-12_at_10.04.27.png

Environment

  • Liferay Portal 6.2
  • JBOSS

Resolution

  • You need to change it on your application server configuration, in the [jboss_home]\standalone\deployments\ROOT.war\WEB-INF\web.xml, as below:
    <session-config>
        <cookie-config>
          <http-only>true</http-only>
        </cookie-config>
        <tracking-mode>COOKIE</tracking-mode>
      </session-config>
    </web-app>
  • Even it being an Application server configuration, we can help you out in canse you do not want to change that. Just request a hotfix with the LPP-17644 internal fix and our support team will do the rest. 

Additional Information

 

did-this-article-resolve-your-issue

legacy-knowledge-base