How do I modify IE7 to allow my application to clear the cookies?
WatiN has a clearcookies() method that don't work because of IE's security.
How do I modify IE7 to allow my application to clear the cookies?
WatiN has a clearcookies() method that don't work because of IE's security.
I think the easiest way to do this would be through a command-line call. Something like:
using System.Diagnostics;
// ...
System.Diagnostics.Process.Start("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2");
Warning, untested. Also, if you're on Vista or newer, you might run into permissions grief.
Duplicate - http://stackoverflow.com/questions/825144/how-to-clear-msie-wininet-cache-programatically