PHP setcookie() for domain but NOT subdomains

后端 未结 4 917
盖世英雄少女心
盖世英雄少女心 2020-12-30 08:46

Is there any way to set a cookie that is not readable on subdomains? In other words, have the cookie available on domain.com, but not

4条回答
  •  醉酒成梦
    2020-12-30 09:00

    this is the reason why quite a few sites (including this one) register a dedicated domain for use as a CDN.

提交回复
热议问题