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

How can I keep certain cookies when clearing recent history?

  • 3 پاسخ
  • 4 have this problem
  • 1 view
  • آخرین پاسخ توسّط cor-el

more options

Good morning. About once a week, I clear my recent history through the Firefox browser. I have the most recent version installed. When I do, I have the box checked to clear the cookies. However, there is one website that has an issue with that. My bank's site, when clearing the cookies, requires an e-mail verification each time I clear the system. I have to go to my email, get a code, go to the bank's website and input the code to be verified. This is a royal pain and a major inconvenience, as you would imagine. I spoke with their technical department and there is no other option. How do I continue to be able to clear out the recent history, but keep certain cookies stored in Firefox? Thank you for any help you can give me.

Good morning. About once a week, I clear my recent history through the Firefox browser. I have the most recent version installed. When I do, I have the box checked to clear the cookies. However, there is one website that has an issue with that. My bank's site, when clearing the cookies, requires an e-mail verification each time I clear the system. I have to go to my email, get a code, go to the bank's website and input the code to be verified. This is a royal pain and a major inconvenience, as you would imagine. I spoke with their technical department and there is no other option. How do I continue to be able to clear out the recent history, but keep certain cookies stored in Firefox? Thank you for any help you can give me.

All Replies (3)

more options

That is a security setting with some web sites. The site leaves a cookie on your computer as proof that your computer has been there before.

One option is to not clear those cookies. An add-on may help you.

Go to the Mozilla Add-ons Web Page {web link} (There’s a lot of good stuff here) and search for cookie.

more options

Good morning. I don't known if an extension can do that, but from "Clear recent history" session you can not keep certain cookies stored. To do that (keep specific cookies) you have to go to Privacy panel(of the Firefox Options window) > in History - Firefox will session > select Use custom settings for history > check Accept cookies from sites > open Show Cookies… > and delete everything except the cookies you want to keep (bank cookies) > click Ok to save that.

see also : Delete cookies to remove the information websites have stored on your computer


thank you

more options

Let all cookies expire when Firefox is closed to make them session cookies.

  • 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

You can allow third-party cookies only from visited domains.

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

You can set the network.cookie.thirdparty.sessionOnly pref to true on the about:config page to make third-party cookies behave as session cookies that expire when Firefox is closed.


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.