This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why are my cookies not automatically deleting? The cookies use to be automatically removed.

  • 2 svar
  • 1 har dette problemet
  • 13 views
  • Siste svar av cor-el

more options

I do not know WHEN it started because I trusted Firefox to maintain the cookie deletion function upon exiting and it is a fluke that I caught it not doing it today. I have selected the appropriate option under privacy/security, but the cookies remain. I do not want to have to go in and delete them manually every time I use the browser. This feature was one of the main reasons that I chose to use firefox as my main browser. I do not think it is a problem with my computer, but with firefox itself. Please help!

I do not know WHEN it started because I trusted Firefox to maintain the cookie deletion function upon exiting and it is a fluke that I caught it not doing it today. I have selected the appropriate option under privacy/security, but the cookies remain. I do not want to have to go in and delete them manually every time I use the browser. This feature was one of the main reasons that I chose to use firefox as my main browser. I do not think it is a problem with my computer, but with firefox itself. Please help!

All Replies (2)

more options

Hello,

Can you check your privacy settings in:

  • Tools (or New Fx Menu) > Options > Privacy

If you have custom settings, make sure "Clear History when Firefox Closes" is checked and in Settings, Cookies are checked.


Note that your system details show that you have a user.js file, if you did not create it yourself, you can delete it by going to your profile folder:

If you did create it, make sure that there are no settings in there that prevent your cookies from being deleted. Also make sure you don't have a mozilla.cfg file

See:

more options

If clearing cookies didn't help then it is possible that the cookies.sqlite file that stores the cookies got corrupted.

  • Rename (or delete) cookies.sqlite (cookies.sqlite.old) and delete other present cookies files like cookies.sqlite-journal in the Firefox profile folder in case the file cookies.sqlite got corrupted.

You can use this button to go to the currently used Firefox profile folder:


Are you automatically reopening tabs and windows from the previous session via session restore?

  • Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

Firefox stores cookies used in tabs that are currently open in the sessionstore.js file as part of saved session data, so those cookies will be restored if Firefox is closed without first closing these tabs.

You can set the browser.sessionstore.privacy_level pref to 2 (never) or 1 (non-HTTPS) on the about:config page to disable saving cookies via session restore in the sessionstore.js file. The browser.sessionstore.privacy_level_deferred pref is used when you do not reopen the previous session automatically via "Show my windows and tabs from last time" and uses the same values.