Whats the command to clear a users cookies?
I have a program, and when you click on a button it clears your cookies. (Does other things too).
Printable View
Whats the command to clear a users cookies?
I have a program, and when you click on a button it clears your cookies. (Does other things too).
I'm not aware of any command to delete cookies. Cookies are just files and to delete them you have to figure out where they are (and this will vary by system and browser) and then loop through them and kill them individually
well since theres a button in internet explorer that deltes all cookies, I would just figure there had to be some way to do this in VB.
1) IE knows where it's cookies are because it put them there. VB doesn't know where that is.
2) You seemed to imply ALL cookies, so I assumed you meant all cookies. IE only deletes the cookies IT stored. Personally, I use both IE and NN and so have cookies from both. I think some other folks still use both as well.
Well I mean IE cookies of course.
Is there anything special about the files? Like about the filenames or something so by searching the hard disk I can find them?
Thanks
I'd say they're stored in the Cookies folder in your user directory. :) On my system that is C:\Documents and Settings\UserName\Cookies.
I don't know whether all cookies are stored there or just IE's... :confused:
I'm asking because in my cookies folder all the files in it have this format : [email protected], except for one file (index.dat)
So I was thinking that if I find the cookies folder or maybe just search the whole hard disk for files with this format and delete them...
Isn't there code that can delete all files in a folder on the hard disk drive?
Here you can get the filenames of all the files in a folder if you first find the cookies folder ;)