httpOnlyCookies,它只影响服务器上创建的cookie吗?
如果我在 web.config 中设置 httpOnlyCookies="true"
,这应该会影响服务器端创建的所有 cookie,对吗?
但它是否会以某种方式影响 gui 中 jquery 插件设置的 cookie,或者它们在下一页响应中不受影响?
我猜他们不会受到影响,但我想知道。
If I set httpOnlyCookies="true"
in web.config, that should affect all cookies created server side right?
But does it somehow affect cookies set by jquery plugins in the gui, or do they stay unaffected on the next page response?
I'm guessing they would stay unaffected, but I would like to know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的猜测是对的。
选项 httpOnlyCookies="true" 表示由 Asp.Net 创建的所有 cookie 都将是 HttpOnly。它不会影响客户端创建的cookie。
Your guessing is right.
Option httpOnlyCookies="true" means that all cookies which are created by Asp.Net will be HttpOnly. It does not affect cookies created on client side.