开发者

Cookies of domain are sent to subdomain, how to fix?

开发者 https://www.devze.com 2022-12-12 14:51 出处:网络
Firefox is sending my \".domain.tld\" cookies when I go to sub.domain.tld. How can I make sure that the browser only sends co开发者_如何学Gookies of \".sub.domain.tld\" and not \".domain.tld\"?You c

Firefox is sending my ".domain.tld" cookies when I go to sub.domain.tld.

How can I make sure that the browser only sends co开发者_如何学Gookies of ".sub.domain.tld" and not ".domain.tld"?


You cannot. If you set a cookie on .domain.tld it will be sent to domain.tld and all subdomains.

Although this may be unrelated to your problem, take a look at sstatic.net - where the Stack Overflow family of sites host their static resources.

0

精彩评论

暂无评论...
验证码 换一张
取 消