Jump to content

ieaction - Delete ALL cookies in Internet Explorer


 Share

Recommended Posts

It depends on where the folder is, but cookies are all .txt files, I think. To delete the temporary cookies on my particular machine with the default way it is set up:

FileDelete("C:\Documents and Settings\Owner\Local Settings\Temporary Internet Files\*.txt")

I did find this folder though:

C:\WINDOWS\Temp\Cookies

Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
Share on other sites

Yeah, FreeFry has the right approach, there is a hidden folder to the permanent cookies here:

C:\Documents and Settings\Owner\Cookies

but it would be best - if it is the currently-logged-on user whose cookies you are targetting, to use this code to get the folder name, and then just delete everything in it:

$StaleCookies = @UserProfileDir & "\Cookies"
FileDelete($StaleCookies & "\*.*")
Edited by Squirrely1

Das Häschen benutzt Radar

Link to comment
Share on other sites

Yeah, FreeFry has the right approach, there is a hidden folder to the permanent cookies here:

C:\Documents and Settings\Owner\Cookies

but it would be best - if it is the currently-logged-on user whose cookies you are targetting, to use this code to get the folder name, and then just delete everything in it:

$StaleCookies = @UserProfileDir & "\Cookies"
FileDelete($StaleCookies & "\*.*")
Yes, ofcourse.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...