在子域上设置 Cookie?

发布于 2024-09-19 08:45:51 字数 171 浏览 2 评论 0原文

我有网站 blah.com。我需要设置 3cookies + 使用谷歌分析。我想将其设置为 www.blah.com,这样当我提供图像(在 blah.com 或 static.blah.com 上)时,它是无 cookie 的。

这可能吗?我该怎么做?我正在使用 jquery-cookies 和 asp.net

I have the site blah.com. I need to set 3cookies + use google analytic. I would like to set it as www.blah.com so when i serve images (on blah.com or static.blah.com) it is cookie-less.

Is this possible? How do i do it? I am using jquery-cookies and asp.net

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

请持续率性 2024-09-26 08:45:51

只需将 cookie 的域属性设置为“www.blah.com”

Simply set the domain attribute of the cookie to "www.blah.com"

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