title: Cross Domain Cookies Problem (ASP.NET)
body: <p>i have a problem with cross-domain cookies. I read a lot of documentation about sharing cookies between subdomains. The main idea of all articles is set Domain property to something like ".mydomain.com". I've created two domains on local IIS server - <em>test1.local.boo</em> and <em>test2.local.boo</em>. They works great and visible with browser. I have the following code:</p>
  
  <p>Site test1 - Writes cookie:</p>
  
  <pre><code>HttpCookie myCookie = new HttpCookie("TestCookie");
  myCookie.Domain = ".local.boo";
  myCookie["msg"] = "Welcome from Cookie";
  Response.Cookies.Add(myCookie);
  </code></pre>
  
  <p>Site test2 - Reads cookie:</p>
  
  <pre><code>HttpCookie cookie = Request.Cookies["TestCookie"];
  if (cookie != null)
  {
      Response.Write(cookie["msg"]);
  }
  else
  {
      Response.Write("FAILED");
  }
  </code></pre>
  
  <p>This code always shows FAILED message. So it means that second site can't read cookie from the same subdomain. Where is my mistake??</p>