Comment Lynx and Persistent Cookies - 01/21/09
Just a quick write up here on persistent cookies and lynx. I was having an issue where lynx was prompting me to accept cookies from Google, Gmail etc… all of the time. I solved this by enabling persistent cookies for lynx 1.8.5.
To do this, you can put the following in lynx.cfg file which resides in your user home directory:
| Bash | | copy | | ? |
SET_COOKIES:TRUE |
ACCEPT_ALL_COOKIES:TRUE |
PERSISTENT_COOKIES:TRUE |
COOKIE_FILE:~/.lynx_cookies |
COOKIE_SAVE_FILE:~/.lynx_cookies |
This will store cookies in the .lynx_cookies file. It will also accept all cookies (you may want to omit this and enable cookies for specific domains which is also possible). For more information on the lynx configuration file and the various options see the link below:
One more note, this doesn’t have to go in the lynx.cfg file, you can also put it in a .lynxrc file, but you then may have to alias lynx to read from that file, possibly in .bashrc or .bash_profile, up to you:
| Bash | | copy | | ? |
alias lynx="lynx -cfg=$HOME/.lynxrc" |
And that’s about it.