3 ms·
Why not just use a subdomain? This is, arguably, what subdomains are for.
by chias 4y ago
Why not just use a subdomain? This is, arguably, what subdomains are for.
- mschuster91 4y agoSubdomains usually get all the cookies from the main domain (or at least they used to, didn't follow up on that issue for some years).
- cuttysnark 4y agoIt's the opposite. Set-Cookie takes the optional Domain attribute and "If omitted, this attribute defaults to the host of the current document URL, not including subdomains." However, perhaps you're remembering "Multiple host/domain values are not allowed, but if a domain is specified, then subdomains are always included." [0] [0] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#domaindomain-value https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Se...
- deleted 4y ago[deleted]