title: How to delete Cookies from windows.form?
body: <p>I am working with the Webbrowser control on a windows.form application written in C#. I would like to write a method for deleting the cookies from the Webbrowers control after it visits a certain site. Unfortunately, I don't know how to do that exactly and haven't found a lot of help on the internet.</p>
  
  <p>If anyone has experience actually doing this, not just hypothetical because it might be trickier than it seems, I don't know. </p>
  
  <pre><code>int count = webBrowser2.Document.Cookie.Length;
  webBrowser2.Document.Cookie.Remove(0,count);
  </code></pre>
  
  <p>I would just assume something like the above code would work but I guess it won't. Can anyone shed some light on this whole cookie thing?</p>