Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cookies in Firefox [closed]

Where does Firefox store cookies and in what format are they stored

like image 300
Developer Avatar asked Nov 19 '08 15:11

Developer


People also ask

Is Firefox blocking cookies?

It was then enabled by default in private browsing windows with the launch of Firefox 89 later that year. As of today, Total Cookie Protection will now be the default for all users worldwide, not just in private windows or if you opt into stricter settings.

How do I untick cookies and site data when Firefox is closed?

Chosen solutionType about:preferences#privacy<enter> in the address bar. The button next to History, select Use Custom Settings. Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes.

Does Firefox delete cookies automatically?

Exceptions are only needed if you want to stay logged in to a site. Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature.

How do I stop Firefox from deleting cookies?

Chosen solutionCreate a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when you close Firefox. Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions.


2 Answers

For Windows

Your cookies are stored in:

  • In Firefox 2.x: plain text file (cookies.txt) in a unix-format text file (eg LF instead of CRLF for newlines).
  • In Firefox 3.0 and up: a binary file representing SQLite database on which you can make queries (cookies.sqlite).

The file is located under your profile folder:

C:\Documents and Settings\username\Application Data\Mozilla\Firefox\Profiles\xxxx.default 

where xxxx is some random-appearing alphanumeric string.

You might want to install the Firefox plugin View Cookies to better manage them.

alt text

For Linux

Your cookies are stored at:

~/.mozilla/firefox/xxxx.default/cookies.sqlite

where xxxx is some random-appearing alphanumeric string.

like image 74
7 revs, 2 users 80% Avatar answered Oct 12 '22 00:10

7 revs, 2 users 80%


Note that in Firefox 3.5, cookies.sqlite is locked exclusively by Firefox, so you have to make a copy of it before reading.

Also, cookies.sqlite may not be flushed to disk until Firefox exits, so you can't assume that the file on disk contains the cookies you need if Firefox is still running.

like image 25
Dan Mitchell Avatar answered Oct 12 '22 01:10

Dan Mitchell