公告
财富商城
积分规则
提问
发文
2019-06-05 10:28发布
Anthone
How to configure JBoss 5.1.* to make session cookie HttpOnly?
<Context useHttpOnly="true">
Doesn't work.
Have you tried
<SessionCookie secure="true" httpOnly="true" />
as explained here.
I'm using JBoss [EAP] 5.0.1 and adding
in <myJBossServerInstancePath>/deploy/jbossweb.sar/context.xml
<Context cookies="true" crossContext="true"> <SessionCookie secure="true" httpOnly="true" /> ...
works perfectly (thanks Luciano).
Add
In $JBOSS_HOME/deploy/jbossweb.sar/context.xml
<Context cookies="true" crossContext="true"> <SessionCookie secure="true" httpOnly="true" />
Make sure HTTPS/SSL configured in the server to work.
最多设置5个标签!
Have you tried
as explained here.
I'm using JBoss [EAP] 5.0.1 and adding
in <myJBossServerInstancePath>/deploy/jbossweb.sar/context.xml
works perfectly (thanks Luciano).
Add
In $JBOSS_HOME/deploy/jbossweb.sar/context.xml
Make sure HTTPS/SSL configured in the server to work.