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

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

Delete all cookies when Firefox closes except some specific ones

  • 8 bhfreagra
  • 2 leis an bhfadhb seo
  • 1 view
  • Freagra is déanaí ó Gonçalo

more options

Using Firefox 68.12.0ESR. I know 78 is available, I just haven't had the time to test it yet. I delete cookies when I exit Firefox. I want to keep some for sites that I trust, such as this site. I've added exceptions to Allow these trusted sites as documented on a thread somewhere else, but it doesn't work. All cookies are deleted.

Is it possible to keep cookies only for a select group of sites. eg. support.mozilla.com, tomshardware.com, mydigitallife.net, speedtest.net and so on.

Thank you.

Using Firefox 68.12.0ESR. I know 78 is available, I just haven't had the time to test it yet. I delete cookies when I exit Firefox. I want to keep some for sites that I trust, such as this site. I've added exceptions to Allow these trusted sites as documented on a thread somewhere else, but it doesn't work. All cookies are deleted. Is it possible to keep cookies only for a select group of sites. eg. support.mozilla.com, tomshardware.com, mydigitallife.net, speedtest.net and so on. Thank you.

Réiteach roghnaithe

You can let the cookies expire when Firefox is closed to make them session cookies instead of using "Clear history when Firefox closes" to clear all cookies including cookies with an allow exception you may want to keep.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: [ ] "Delete cookies and site data when Firefox is closed"

You can create a cookie allow exception with the proper protocol (https:// or http://) for websites you want to remember you.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: "Exception"

Note that you only keep cookies with an allow exception if you use "Delete cookies and site data when Firefox is closed". Deleting cookies otherwise removes all selected cookies.

Read this answer in context 👍 1

All Replies (8)

more options

Réiteach Roghnaithe

You can let the cookies expire when Firefox is closed to make them session cookies instead of using "Clear history when Firefox closes" to clear all cookies including cookies with an allow exception you may want to keep.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: [ ] "Delete cookies and site data when Firefox is closed"

You can create a cookie allow exception with the proper protocol (https:// or http://) for websites you want to remember you.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: "Exception"

Note that you only keep cookies with an allow exception if you use "Delete cookies and site data when Firefox is closed". Deleting cookies otherwise removes all selected cookies.

more options

Ah... I see what I did. I have both the clear history options ticked. Removed the tick from the one under History and it's working now. Thanks for your help.

more options

This fix does not work for me in Firefox 83.0 It stopped working a week ago and i can't fix it. Why?

more options

Firefox 82+ comes with a "Redirect Tracking Protection" feature to purge tracking cookies for websites automatically.

You can disable the feature to purge tracking cookies automatically via the about:config page.

  • privacy.purge_trackers.enabled = false

You can open the about:config page via the location/address bar. You can click the button to "Accept the Risk and Continue".

more options

I want to keep cookies for signing on to trusted sites (e.g. brokerage accounts) after I close Firefox; the rest I want deleted.

The tools that you provide are buried in the bowels of Firefox and might work great if you are computer savvy, which most of us are not. Can't you make this like the most simple thing on the planet?? I have a cookie manager that has a drop down box that has options like "Delete current site cookies." Can't you come up with something like "Keep existing site cookies after Firefox closes"?

I am really interested in only keeping "sign-on" cookies- those that show my PC is trusted, not all of the cookies a site might set on my PC.

more options

Wayne said

I want to keep cookies for signing on to trusted sites (e.g. brokerage accounts) after I close Firefox; the rest I want deleted. The tools that you provide are buried in the bowels of Firefox and might work great if you are computer savvy, which most of us are not. Can't you make this like the most simple thing on the planet?? I have a cookie manager that has a drop down box that has options like "Delete current site cookies." Can't you come up with something like "Keep existing site cookies after Firefox closes"? I am really interested in only keeping "sign-on" cookies- those that show my PC is trusted, not all of the cookies a site might set on my PC.

This is precisely what I would like to do. I'm using Firefox 84.0.2. Anyone know if there is some way to do it?

more options

I confirm the problem

- Unchecked "cookies" and "site preferences" in "Clear history...." - Enabling "Delete cookies and site data when Firefox is closed" - Adding exceptions for selected sites. - set privacy.purge_trackers.enabled = false (I doubt this is required)

No way , all cookies are still purged when firefox close.....

Using FF 87.0

more options

dhmarteau said

I confirm the problem - Unchecked "cookies" and "site preferences" in "Clear history...." - Enabling "Delete cookies and site data when Firefox is closed" - Adding exceptions for selected sites. - set privacy.purge_trackers.enabled = false (I doubt this is required) No way , all cookies are still purged when firefox close..... Using FF 87.0

I have the same problem !