logo       

Re: Discussion of building .NET applications targeted for the Web: msg#00093

windows.devel.dotnet.web

Subject: Re: Discussion of building .NET applications targeted for the Web

If you just set the .Domain property to the main domain, It will be available
for all subdomains. If it's in a complete different domain, there are ways
to do that too, but that's a bit more complicated. I just got that working
through a series of tracking gifs and a shared SQL server. I'm sure there
might have been an easier way to do it, but I didn't have access to any of
that information. Below is some simple source for setting the cookie and
having it available for the domain and subdomains.

// Set Cookie for entire domain and subdomains
Response.Cookies("something").Value = "Some Value Here";
Response.Cookies("something").Expires = DateTime.Now.AddDays(1000);
Response.Cookies("something").Domain = "test.com";

Stephen Bayer
stephen@xxxxxxxxxxxxxxx

===================================
This list is hosted by DevelopMentor® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise