httpOnly cookie

bablu picture bablu · Nov 17, 2012 · Viewed 7.5k times · Source

I had done web scan for an application(built in struts and hibernate framework) deployed in jboss 5 which reported "Set-cookie does not use HTTPOnly keyword. The web application does not utilize HTTPOnly cookies". What does it mean. I looked for some post and just added one line in my jboss/deploy/jbossweb.sar/context.xml as

<SessionCookie secure="true" useHttpOnly="true" >

After setting that, I am getting error while running the application.
Is there any configuration that I am missing?

Answer

free_easy picture free_easy · Nov 17, 2012

try this:

<SessionCookie secure="true" httpOnly="true" />