Configure domain of JSESSIONID cookie on JBoss

Solution Verified - Updated -

Issue

  • Is there a way to configure the domain of the JSESSIONID cookie sent by JBoss/Tomcat?
  • When using <SessionCookie path="/test" secure="true" httpOnly="true" domain="test"/> what does the (domain="") used for?
  • We are in the process of migration from EAP 4 to EAP 6. We can't find equivalent files (context.xml etc) to set the cookie which can be shared across subdomains.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.2
    • 4.3
    • 5.x
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.