views:

433

answers:

1

I need some code here. I need to delete these blasted cookies once and for all.

WebBrowser wb = new WebBrowser();
wb.Navigate("www.cookieparadise.info");
//load
string cookie = wb.Document.Cookie;
//cookie = "this=cookie1;that=cookie2;etc=more;";

I need to delete Document.Cookie. Please dont suggest any javascript because it doesnt work.

I am using wininet DeleteTheCache() method and it deletes all but 2 cookies which I guess are in memory.

How do you clear those darn cookies?

A: 

try InternetSetCookieEx INTERNET_COOKIE_HTTPONLY

Sheng Jiang 蒋晟