Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox deletes all cookies on exit - but I want to leave specific cookies saved

  • 3 回覆
  • 0 有這個問題
  • 2 次檢視
  • 最近回覆由 cor-el

more options

Hi,

I have set Firefox to delete every cookie when I exit. However some websites use cookies for dark mode. My question is this : can I make it so Firefox continues to delete every cookie but save only some specific cookies For exemple, linkedin uses a dozen of cookies and two of them are used to store value for dark mode. Can i save only those two ?

Thanks in advance

Hi, I have set Firefox to delete every cookie when I exit. However some websites use cookies for dark mode. My question is this : can I make it so Firefox continues to delete every cookie but save only some specific cookies For exemple, linkedin uses a dozen of cookies and two of them are used to store value for dark mode. Can i save only those two ? Thanks in advance

所有回覆 (3)

more options

You can use these steps to make a website recognize and remember you.

  • create a cookie allow exception with the proper protocol (https:// or http://) to make a website remember you

You can check that you aren't clearing important cookies.

  • using "Delete cookies and site data when Firefox is closed" to clear cookies keeps cookies with an allow exception
    in 102+ version toggling this setting makes changes to the "Clear history when Firefox closes" settings and those settings prevail
  • using "Clear history when Firefox closes" in Firefox 102+ honors exceptions and keeps cookies with an allow exception, previous versions removed all cookies

Make sure to keep the "Site settings".

  • clearing "Site settings" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • Settings -> Privacy & Security
    Cookies and Site Data: "Manage Exceptions"
  • Settings -> Privacy & Security
    Firefox will: "Use custom settings for history":
    [X] "Clear history when Firefox closes" -> Settings
more options

You can use the Inspector (ctl+shft+i) to view cookies on a site. Go to the Storage tab and you will see Cookies and the site name in the left panel. You can delete individual cookies there.

more options

You can look on the Add-ons website for a suitable cookie manager extension.