Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在这个问题中讨论的 context.xml 中添加了以下行,现在我所有的 cookie 都设置为安全和 httponly。
但是现在当我登录到系统时,它把我扔了出去,说我的会话过期了。
系统在“Http”上运行,我在这里有什么遗漏吗?
先感谢您。
我通过使用<SessionCookie httpOnly="true" /> 而不是解决了这个问题<SessionCookie secure="true" httpOnly="true"/>
<SessionCookie httpOnly="true" />
<SessionCookie secure="true" httpOnly="true"/>