If I'm not wrong, Lynx will save the cookies from a session on a file, the default is ~/.lynx_cookies
. But, when I accept cookies in Lynx session with Always
or Yes
when prompted, the cookies doesn't saved!
Lynx man page says:
-cookie_file=FILENAME
specifies a file to use to read cookies. If none is specified, the default value is ~/.lynx_cookies for most systems, but ~/cookies for MS-DOS. -cookie_save_file=FILENAME
specifies a file to use to store cookies. If none is specified, the value given by -cookie_file is used.
But I don't have such file on my home directory.
What should I do to enable cookies on Lynx?
EDIT:
Thanks @stoney! It works!
What I have done:
$ cp /etc/lynx.cfg $HOME
$ export LYNX_CFG=$HOME/lynx.cfg
Add/edit this line on $HOME/lynx.cfg
SET_COOKIES:TRUE
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:~/.lynx_cookies
COOKIE_SAVE_FILE:~/.lynx_cookies
Restart your terminal (or just source your .bashrc
). Then, restart lynx
. Done!