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.

James Jeffery
  • 109
  • 2
  • 8

1 Answers1

0

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
  • 11,755
  • 5
  • 49
  • 77