Can a cookie be shared between two sites on the same top level domain? Say www.example.com
and secure.example.com
?
We are looking into implementing a cache for non-secure content, and need to segregate secure content to another domain.
What parameters does the cookie need? I'm using asp.net
The easiest way to apply a cookie domain that can be shared across subdomains is to put it in your web.config:
<forms cookieDomain="example.com">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With