Re: Session Cookie not accessible across Sub-Domains

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi John,
I wasn't referring to sharing sessions across parent domains (e.g.
"mydomain1.com" and "mydomain2.com"). I want to share sessions on sub-domains
of the same domain (e.g. "www.mydomain.com" and "search.mydomain.com").
Regards,
Doug


"John Timney (ASP.NET MVP)" wrote:

> sorry I misread your question (its late here!!).
>
> You can't share sessions across domains, nor applications natively - so it
> will always set a new cookie as you move between domains. Because you can
> share cookies across those applications (and between those domains) one
> approach is to store your shared data in a database and use a shared domain
> cookie to identify the data in the database.
>
> --
> Regards
>
> John Timney
> ASP.NET MVP
> Microsoft Regional Director
>
.



Relevant Pages