当前位置: 动力学知识库 > 问答 > 编程问答 >

security - Secure cookie with HttpOnly and Flag - Tomcat8

问题描述:

I having some problems with setting a secure cookie with Tomcat 8.0.28 and Apache 2.2.15..

I have the following config in the web.xml:

<session-config>

<session-timeout>60</session-timeout>

<tracking-mode>COOKIE</tracking-mode>

<cookie-config>

<http-only>true</http-only>

<secure>true</secure>

</cookie-config>

</session-config>

Unfortunately tomcat logs nothing to the localhost log. I already checked out the documentation of Tomcat 8 but the config seems to be how it should be..

Do i miss anything?

分享给朋友:
您可能感兴趣的文章:
随机阅读: