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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top