title: C#/ASP.NET: can't remove cookies with Domain property specified
body: <p>I have the following code in my login method:</p>
  
  <pre><code>Response.Cookies["cookie"].Value = "...";
  Response.Cookies["cookie"].Domain = "domain.com";
  </code></pre>
  
  <p>This way the cookie is put into the main domain and all subdomains</p>
  
  <p>However when I try to remove the cookies:</p>
  
  <pre><code>Response.Cookies["cookie"].Expires = DateTime.Now.AddYears(-1);
  </code></pre>
  
  <p>It doesn't work!</p>
  
  <p>When I remove the 2 line of code where Domain property is specified, it works fine.</p>
  
  <p>How can I solve this problem?</p>
  
  <p>Thanks</p>