Re: Session Cookie not accessible across Sub-Domains
- From: "Doug" <Doug@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Aug 2005 16:05:06 -0700
Hi John,
Thank you for the reply. I'm not sure I understand; or perhaps vice-versa?
I don't set the ASP.NET Session cookie. ASP.NET does that all on it's own. I
do know how to write cookies and set domains, etc. My question is, how do I
get ASP.NET to set the correct domain wherever it set its own cookie?
Thanks,
Doug
"John Timney (ASP.NET MVP)" wrote:
> When initially setting the cookie
>
> Response.Cookies("domain").Value = DateTime.Now.ToString
> Response.Cookies("domain").Expires = DateTime.Now.AddDays(1)
> Response.Cookies("domain").Domain = "mydomain.com"
>
> .................should do the trick.
>
> I think its case sensitive at the browser.
>
> --
> Regards
>
> John Timney
> ASP.NET MVP
> Microsoft Regional Director
>
.
- Follow-Ups:
- Re: Session Cookie not accessible across Sub-Domains
- From: John Timney \(ASP.NET MVP\)
- Re: Session Cookie not accessible across Sub-Domains
- References:
- Session Cookie not accessible across Sub-Domains
- From: Doug
- Re: Session Cookie not accessible across Sub-Domains
- From: John Timney \(ASP.NET MVP\)
- Session Cookie not accessible across Sub-Domains
- Prev by Date: Re: Session Cookie not accessible across Sub-Domains
- Next by Date: Re: DataGrid header span 2 columns
- Previous by thread: Re: Session Cookie not accessible across Sub-Domains
- Next by thread: Re: Session Cookie not accessible across Sub-Domains
- Index(es):
Relevant Pages
|