10

Where does Firefox store cookies in Linux? I searched everywhere but did not find anything.

  • Yes, of course! File name: ~/.mozilla/firefox/<profile name>/cookies.sqlite. – Eddy_Em Jul 11 '13 at 7:16
  • Please only ask one question per question. Also, the part about Windows is off topic; you should try Super User. – strugee Jul 11 '13 at 7:48
15

Firefox stores cookies in sqlite database ~/.mozilla/firefox/<profile path>/cookies.sqlite. You can have full access to it.

For example, to watch all cookies from stackoverflow.com you can do:

cd  ~/.mozilla/firefox/<profile path>/
sqlite3 cookies.sqlite
select * from moz_cookies where baseDomain glob '*stackoverflow*'

(replace here <profile path> by path of your firefox profile).

To see names of database fields do: .schema.

  • 1
    Just one thing to add. The SQLite Manager Firefox extension can open the current profile's databases and display the table data in sortable and searchable grid. Suitable for regular users not familiar with SQL syntax. – manatwork Jul 11 '13 at 8:04
  • 1
    This has changed a number of times over the years; maybe you want to add Firefox version information and/or a link to the MozillaZine Knowledge Base – tripleee Jul 11 '13 at 8:08
0

If you need a text file with the cookie information, you can dump all your cookies using different add-ons.

When I needed cookies for downloading using wget, I dumped using Export Cookies and then loaded them in wget using wget --load-cookies <cookiefile>

-1

Others have provided great detail. I would just like to add to the discussion that you can search through your cookies (and optionally remove them) by going into "Open Menu">Preferences>Privacy>"remove individual cookies" link.

For all intensive purposes, using the sqlite method provided to browse through the cookies database is of course far superior, as it is a database and you can use SQL statements on the data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.