views:

144

answers:

2

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.

A: 

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.

Reinderien