We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

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

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

  • 1 reply
  • 3 have this problem
  • 2 views
  • Last reply by 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

Chosen solution

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

Chosen Solution

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