Cookies of domain are sent to subdomain, how to fi

2019-08-10 14:31发布

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

How can I make sure that the browser only sends cookies of ".sub.domain.tld" and not ".domain.tld"?

1条回答
Explosion°爆炸
2楼-- · 2019-08-10 15:01

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.

查看更多
登录 后发表回答