Cookies in lynx

Anita Lewis ajlewis2
Mon May 17 11:29:19 PDT 2004


On Wed, 3 Apr 2002 10:33:23 -0800 (PST), David Aikema wrote:
> Any idea how to get lynx to save cookies.  The further I've gotten is
> figuring out how to specify a file to load cookies from, but unfortunately
> that option doesn't save any new or modified cookies to that file.
> 
> David Aikema
> 

I think you are talking about persistent cookies.  First lynx has to have
that compiled in.  I got it and compiled it, because simply setting things
in .lynx.cfg did not work.  After compiling it with persistent cookies, it
saved them.

--enable-persistent-cookies flag is what must be used.  You can read about
it in /usr/doc/lynx/lynx_help/Lynx_users_guide.html

This is what I have in ~/.lynx.cfg, but it only worked after I recompiled:
--------------
# COOKIE_FILE is the default file to store persistent downloaded cookies
# in, if Lynx was compiled with EXP_PERSISTENT_COOKIES. The cookie file
# can also be specified in .lynxrc or on the commandline.
COOKIE_FILE:~/.lynx_cookies

# PERSISTENT_COOKIES is tested only if Lynx was compiled with
# EXP_PERSISTENT_COOKIES.  Use this flag to disable the feature.
PERSISTENT_COOKIES:TRUE
--------------
I also set dselect so that lynx was on hold so that a new version would not
be installed.  If you use apt-get, you need to change lynx from 'install' to
'hold' in /etc/apt/selection.lst  At least that is what I figured, since it
would replace it with a newer version when one comes out and I assume it
would put in the default without persistent-cookies.

Anita
-- 
GnuPG key: 1024D/9EDAC910



More information about the Linux-users mailing list