|
Re: Discussion of building .NET applications targeted for the Web: msg#00093windows.devel.dotnet.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> |
|---|---|---|
| Previous by Date: | Re: web.config - custom excption handling.: 00093, Brock Allen |
|---|---|
| Next by Date: | Re: asp.net worker process: 00093, Stephen Bayer |
| Previous by Thread: | web.config - custom excption handling.i: 00093, Jennifer Quinn |
| Next by Thread: | Re: asp.net worker process: 00093, Stephen Bayer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |