title: How to clear a cookie programatically?
body: <p>I am using silverlight unit tests to test an important part of our site. Is it possible to clear cookies before each unit test runs?</p>
  
  <p>The problem is that if I do this,</p>
  
  <pre><code>HtmlPage.Document.Cookies = "";
  </code></pre>
  
  <p>It doesn't work. If the cookie already was this,</p>
  
  <pre><code>key = value
  </code></pre>
  
  <p>I can do this,</p>
  
  <pre><code>HtmlPage.Document.Cookies = "key=";
  </code></pre>
  
  <p>It kind of clears it out, but the string "key" is still part of the cookie.</p>
  
  <p>Any ideas?</p>
  
  <p>Are there any other classes in .NET that deal with cookies? The functionality seems quite limited when I am dealing with more complicated scenarios.</p>