httpOnlyCookies,它只影响服务器上创建的cookie吗?

发布于 2024-12-03 09:44:28 字数 180 浏览 3 评论 0原文

如果我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏花。依旧 2024-12-10 09:44:28

你的猜测是对的。
选项 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文