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
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content