euglug.org

[Eug-lug] Re: toss cookies selectivly!!!

작성자

카테고리:



Bob MillerMon Feb 7 17:04:44 PST 2005

Max Lemieux wrote:

> A noble cause indeed. And yes I'd be writing it to work with Firefox.
> 
> Send me email at max.lemieux at gmail.com with the names of the websites 
> you want to save cookies from, and I'll send you a custom version of the 
> script if I ever get it together. :)

I don't want to dampen your enthusiasm for that project, but let me
tell you what I did instead.

cookies.txt is a text file.  Hand edit it so it only contains
the cookies you want to preserve.  Then make it unwriteable.

   $ chmod -w path/to/cookies.txt

If you want to selectively add a cookie later, chmod u+w it,
visit the site with the good cookie, and chmod -w it again.

When I used Mozilla, I had about 10 sites that I wanted to be
automatically logged in to, and I kept cookies for only those sites in
cookies.txt.  When I switched to Firefox, I set the "keep cookies to
end of session" bit instead.

-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     kbob at jogger-egg.com