Rom*_*omi 1 session httponly session-cookies
设置http-only我在web.xml中使用了它
<session-config>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
</session-config>
Run Code Online (Sandbox Code Playgroud)
但它没有设置http-only.可以任何人建议,可能是什么问题.以及如何设置它.
谢谢.
您使用的是哪个容器以及哪个版本?请注意,因为自servlet 3.0以来,才能在web.xml中使用true