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

Hoe do I keep a few selected cookies when removing all other unwanted cookies ?

  • 2 replies
  • 3 have this problem
  • 4 views
  • Last reply by cor-el

more options

I want to retain certain cookies for internet banks etc. How do I do this when removing all unwanted cookies?

I want to retain certain cookies for internet banks etc. How do I do this when removing all unwanted cookies?

Chosen solution

Under Options - Privacy, you can set "Firefox will: Use custom settings for history". Then you can click the Show Cookies button and manually delete specific cookies.

If you frequently have to delete all but certain cookies, you may want to use an add-on.

Keep in mind that when you delete all cookies, Firefox also clears out all Flash cookies. If you never delete all cookies, you can use the BetterPrivacy add-on to delete Flash cookies.

Read this answer in context 👍 2

All Replies (2)

more options

Chosen Solution

Under Options - Privacy, you can set "Firefox will: Use custom settings for history". Then you can click the Show Cookies button and manually delete specific cookies.

If you frequently have to delete all but certain cookies, you may want to use an add-on.

Keep in mind that when you delete all cookies, Firefox also clears out all Flash cookies. If you never delete all cookies, you can use the BetterPrivacy add-on to delete Flash cookies.

more options

In case you are using "Clear history when Firefox closes":

  • do not clear the Cookies
  • do not clear the Site Preferences

Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.

Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

Let all cookies expire when you close Firefox.

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Keep until: "I close Firefox"

Create a cookie 'allow' exception for cookies that you would like to keep.

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions

Firefox has a setting to allow third-party cookies from visited domains.

  • Tools > Options > Privacy > Firefox will: "Use custom settings for history"

You can set the Boolean pref network.cookie.thirdparty.sessionOnly to true on the about:config page to have third-party cookies behave as session cookies.


You can also look at this extension:

Cookies are only protected within the CookieCuller extension, so do not use "Clear Recent History", but let the cookies expire if you close Firefox and protect the ones that you wish to keep.