How to delete cookies?

  • Thread starter Thread starter phoenix
  • Start date Start date
P

phoenix

Hello,

I tried the following to delete the cookies

Directory.Delete(Environment.GetFolderPath(Environment.SpecialFolder.Cookies
), true);

but always get the message that "index.dat" is still in use by another
process. Anybody knows what I'm doing wrong? Because I just can't find
which process it would be.

Yves
 
Cookies are normal files...
Nothing special about it.

For more detailed information search in google;
for example: C# Delete Cookies

You´ll get a lot of hits...

Greetings,
timtos.
 
Yves, do you have IE open? Any other applications? Also, index.dat is a
system file so that might be causing your errors.
 
Back
Top