[英]Cookie without the secure flag jboss 5.1
Hello there.. 你好..
I am trying to fixing Cookie without the secure flag in jboss 5.1
<myJBossServerInstancePath>/deploy/jbossweb.sar/context.xml
and also added
response.setHeader("SET-COOKIE", "JSESSIONID=" + session.getId() + ";httpOnly");
response.setHeader("SET-COOKIE", "JSESSIONID=" + session.getId() + "; secure");
still secure flag missing. 仍然缺少安全标志。 My project is Jboss 5.1 and java 1.6,Where is my mistake? 我的项目是Jboss 5.1和Java 1.6,我的错误在哪里?
Open {JBOSS_HOME}/server/SERVER_NAME/deploy/jbossweb.sar/contex.xml 打开{JBOSS_HOME} /server/SERVER_NAME/deploy/jbossweb.sar/contex.xml
Add <SessionCookie secure="true" httpOnly="true" />
添加<SessionCookie secure="true" httpOnly="true" />
And restart the server 并重启服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.