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.

ابحث في الدعم

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

Is it possible to set an exception list of cookies that won't be deleted, and clear every other cookie?

  • 1 (رد واحد)
  • 3 have this problem
  • 2 views
  • آخر ردّ كتبه optional

more options

I have set firefox to clear all cookies when firefox is closed, and that's the way I want to keep it. However, there are a handful of sites where I don't want the cookie to be deleted. I also want the cookies for these sites to be updated when I visit the sites, so I can't simply copy them to another folder. Is there a way for me to set up an exception list to the 'clear all cookies on closing' rule? Thanks Chris

I have set firefox to clear all cookies when firefox is closed, and that's the way I want to keep it. However, there are a handful of sites where I don't want the cookie to be deleted. I also want the cookies for these sites to be updated when I visit the sites, so I can't simply copy them to another folder. Is there a way for me to set up an exception list to the 'clear all cookies on closing' rule? Thanks Chris

الحل المُختار

In Options -> Privacy -


  1. In the Accept cookies section, set Keep Until: I close Firefox. This will make all cookies expire when Firefox is closed.
  2. Add any domains you wish to keep to the Exceptions... list, choosing to 'Allow'. (example: 'mozilla.com')
  • If you are using the Clear history when Firefox closes feature, make sure 'Cookies' is not ticked in Settings..., as this setting will override your Exceptions list and delete all cookies on exit.
Read this answer in context 👍 1

All Replies (1)

more options

الحل المُختار

In Options -> Privacy -


  1. In the Accept cookies section, set Keep Until: I close Firefox. This will make all cookies expire when Firefox is closed.
  2. Add any domains you wish to keep to the Exceptions... list, choosing to 'Allow'. (example: 'mozilla.com')
  • If you are using the Clear history when Firefox closes feature, make sure 'Cookies' is not ticked in Settings..., as this setting will override your Exceptions list and delete all cookies on exit.

Modified by optional