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, 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