Sign in to follow this  
Followers 0
tradertt

ieaction - Delete ALL cookies in Internet Explorer

9 posts in this topic




#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

ah you know in Internet explorer there is a function to Delete Cookies?

If the window is invisible, can the script still be able to click that button ?

Seriously, No .. The button will not be clickable if the window is hidden or do not exists.

Share this post


Link to post
Share on other sites

I would say that it would be easier to just delete the cookie files(I also found some cookies in "C:\Documents and Settings\FreeFry\Cookies") rather than having to automate the iexplorer window..

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

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

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0