Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

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

  • 3 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 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.