How best to delete cookies?

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
I'm currently using IE6 and thought I came up with an easy way of deleting all unwanted cookies. I wrote a simple .bat program to delete all the cookies then reload ones I wanted. What I originally did was delete all the cookies, then visit the sites that require a passwork like AnandTech and the New York Times. I copied the cookies generated to a separate directory and the .bat reloads thems.

The problem is after a day or two I have to reenter the passwords. I don't know why this doesn't work. Anybody know what I'm doing wrong if if this will even work?
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
What is your bat file like?

If I wrote one, it would be somewhat like this:

'Navigate to the cookies folder here

'Copy known cookies to temp folder
mkdir SafeCookies
copy *@anandtech*.* SafeCookies

'Delete all cookies
del /q *.*

'Copy the safe cookies back
copy SafeCookies\*.*

'Clear temp folder
del /q SafeCookies\*.*
rmdir SafeCookies

 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
The bat was basically

del C:\.....\cookies\*.txt
copy c:\temp cookies\*.* c:\....\cookies

 

singh

Golden Member
Jul 5, 2001
1,449
0
0
It is possible the cookies are set to expire at a certain time. The way I showed above preserves the cookies by copying their current contents and restoring them again, so it might be worth a shot for you to try it.
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
I see what you mean, Singh. That's what I was thinking I had to do. It should be easy to single out the few sites required. Thanks.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
let me know what you get with this. i clear out my cookies manually every day and try to make sure i dont delete the cookies for the sites i actually want. i block all the ad agency cookies but i dont wanna keep adding to a list of cookies to block. id rather just auto delete them. if youre creating an bat file to do it, id be interested in using it too. i probably wont be much help writing it though.
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
I'm setting up the new bat right now. It is set up for AnandTech, the NY Times and the LA times. The bat looks something like this:

COPY c:\windows\temporary internet settings\*nytimes*.txt c:\backups\cookies
COPY c:\windows\temporary internet settings\*mediaplex*.txt c:\backups\cookies
COPY c:\windows\temporary internet settings\*latimes*.txt c:\backups\cookies
COPY c:\windows\temporary internet settings\*anandtech*.txt c:\backups\cookies

DEL c:\windows\temporary internet settings\*.txt

COPY c:\backups\cookies\*.* COPY c:\windows\temporary internet settings

DEL c:\backups\cookies\*.txt


Give me a couple of days to see how the time limits work out. I'll keep you posted.

If you use this program you'll have check the location of your cookies. My directories are a little different. I believe the above are the IE defaults. Singh or someone else would know.

Edited to change the last DEL command to *.txt instead of *.*
That way DOS doesn't ask any questions.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
thanks.

the win2k/IE default cookies location is:
C:\Documents and Settings\USER_NAME\Local Settings\Temporary Internet Files
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
FOBSIDE, the program has been working fine. The cookies must be time sensitive, and this approach seems to take care of that problem.

Try it out and tell me whether you have the same luck.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
do i just copy the stuff you have there into a .bat file but with my cookie names? youll have to excuse my ignorance. thanks.
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
That's basically the program, you just need to confirm the location of your cookies, plus the names (roughly) of the cookies you want to keep. What you can do is delete all of the cookies to start with a clean folder, then visit the sites that require passwords. See what cookies are created, then use those names to 'plug into' your bat file.

The * is a wildcard, so if the cookie has a slightly different name (usually because numbers are added to it) the program will recognize it. DON'T NOT use the wildcard, and use the txt extension at the end. That way you can use two *. I recall DOS won't allow three * in the same file name.

I hope that is clear. If you have any more questions I'll be back on line tomorrow.

Good luck.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
it doesnt seem to be doing anything for me. i even removed the last line from the file so the copied over cookies would stay there but i didnt see them in the folder. any ideas?
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
The last line should stay, otherwise the cookies (in the temp folder) won't be updated properly and you'll get questions from DOS about whether you want to overwrite the files. The idea is to empty the temp folder each time. It's just a holding pen for the cookies you want returned to C:\Documents and Settings\USER_NAME\Local Settings\Temporary Internet Files or whereever.

I'm not sure why it isn't working. But are you certain the saved cookies are not being copied back to your IE default directory?
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
i typed in the path and .bat file name in cmd and it says it cant find the specified file. nothing is copied over.

its not even copying over the original cookies. it says specified file not found. i looked and the files are in the folder:
C:\Documents and Settings\User Name\Local Settings\Temporary Internet Files

i also found the cookies in:
C:\Documents and Settings\Matthew Pih\Cookies

it makes no difference which one i specify, both say it cant find the files.
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Post your bat file. FYI, the default cookies directory for IE6 will be ROOT_DRIVE\Documents and Settings\USER_NAME\Cookies

 

TheWart

Diamond Member
Dec 17, 2000
5,219
1
76
i recommend a program called Cookie Pal from Kookaburra Software. $15 to register, the first software i ever bought on teh net back in 98. excellent support for the major browsers, allows you to program it to catch cookies from any other prog that is asking you if you want to keep a cookie. soo easy to use, i really love it.

also, the freeware AdAware 5.83 cleans out some of te more nasty cookies from doubleclick and alexa.
 

FOBSIDE

Platinum Member
Mar 16, 2000
2,178
0
0
i just moved to win xp. should that make a difference on where my cookies are stored?
 

grrl

Diamond Member
Jun 21, 2001
6,204
1
0
FOBSIDE. I don't know about the location in XP, but I assume it's the same as in 2K.

Other than that, have you had any luck with the bat?
 

Mavrick007

Diamond Member
Dec 19, 2001
3,198
0
0
Here's another good little program that will keep track of your cookies for you and alert you for when new ones come up and which ones to keep or remove. It looks pretty good and it's free, it's called CookieWall.
 

Armitage

Banned
Feb 23, 2001
8,086
0
0
Originally posted by: Hullboy
or you could just download mozilla, which has good cookie management

Yes, netscape does have good cookie management, although I like konquerors better.

What I always do with Netscape & Mozilla is symlink the cookies file to /dev/null
To requesting sites, it looks like you have cookies turned on, but they go straight to the bit bucket.


 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |