title: How to clear cookie through WinINet function?
body: <p>Using <code>WinINet</code> <code>InternetGetCookie</code> and <code>InternetSetCookie</code> functions, it's pretty straightforward to get and set cookie inside the application which makes a web request through <code>WinINet</code>.  </p>
  
  <p>However, I could not so far find a way to clear cookie.</p>
  
  <p>Calling <code>InternetSetCookie</code> with blank data (either <code>L""</code> or <code>NULL</code>) does not help (tried both with and without specifying the cookie name).</p>
  
  <p>Tried <code>FindFirst/NextUrlCacheGroup</code>, <code>DeleteUrlCacheGroup</code>, and also <code>FindFirst/NextUrlCacheEntry</code>, <code>DeleteUrlCacheEntry</code> combinations. Still no luck.</p>
  
  <p>Any ideas?</p>