How to make JSESSIONID cookie secured on JBoss EAP 4.x/5.x?

Solution Verified - Updated -

Issue

  • Session cookies set by the application must be secure
  • How to set JSESSIONID to be secure in this environment?
  • How to secure Cookies
  • How to configure JSESSIONID Cookie secure and httponly flags?
  • Missing Secure Attribute in Encrypted Session (SSL) Cookie. Our appScan result has found that the JSESSION ID is not secure. We have F5 load balancer (where the SSL offloading happens) and apache in front of EAP.

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x
  • Application server hosted on http protocol
  • End user communication happens through SSL until network load balancer and then on with http

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.