Forrest logo
back to the sqlite3 tool

sqlite3:ai:6a3ae

How to extract usable cookie for current session from firefox folder to use with linkchecker
$ sqlite3 -header -json ~/.mozilla/firefox/${profile_folder}/cookies.sqlite "SELECT name, value FROM moz_cookies WHERE (host='.example.com' OR host='.example2.com') AND (expiry = 0 OR expiry > strftime('%s', 'now'));" > cookies.json
try on your machine

Extracts usable cookies for the current session from the Firefox folder to the 'cookies.json' file

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how to extract usable cookie for current session from firefox folder to use with linkchecker?
back to the sqlite3 tool