別のサブドメインの cookie をセットできるのか
できない。
疑問
- foo.example.com で
Domain=bar.example.com
をセットできるのか?Domain=example.com
はできるDomain=example.net
はできない
答え
できない。
The user agent will reject cookies unless the Domain attribute specifies a scope for the cookie that would include the origin server. For example, the user agent will accept a cookie with a Domain attribute of "example.com" or of "foo.example.com" from foo.example.com, but the user agent will not accept a cookie with a Domain attribute of "bar.example.com" or of "baz.foo.example.com".