Forum Moderators: open
by default, a cookie can only be read from the domain it was created on. so, if you create the cookie under the domain www.webmasterworld.com, only WebmasterWorld can read it. my problem was this:
i was creating the cookie under my domain, and was trying to read it from my secure site, which is hosted on a different domain.
you can specify the domain of the cookie by using the Domain property of the Cookies collection.
ex: response.cookies("test").domain = "www.yourdomain.com"
I guess you might need to maintain two sets of identical cookies, one for each domain. From domain1 you set cokkies normall, and also overridden to domain2. From domain2 you set cookies normally, and also overridden to domain1.
But as I think about it, why would the browser allow you to set cookies for another domain? That would be a total breach of security. So what is writeable domain property for? I dunno..... hopefully someone will chime in.
Since this is not strictly a MS issue, you might do better asking the non-ASP portion of the question in the HTML forum.