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!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Did the semantics of cookie exceptions change in FF 38?

  • 2 个回答
  • 1 人有此问题
  • 14 次查看
  • 最后回复者为 kkm000

more options

I have set my cookie options to always accept first party only, and keep until end of session. Obviously, cookies do evaporate when FF is restarted, and this is what I want. I do want this behavior overridden for some specific sites. For example, I want to keep cookies from sites in the google.com, accounts.google.com in particular. Up until FF 38 (I think -- the behavior broke fairly recently), I had an exception for google.com to Allow cookies (see about:preferences#privacy). The Allow setting implied the cookies were not erased at end of session (there is also Allow for Session exceprtion).

This is not true any more. Even though I added an exception for both google.com and accounts.google.com, and I can indeed confirm that these sites have added non-session cookies after I log on, these cookies disappear when I restart FF.

Has anything changed in the treatment of cookie exceptions? Is this plainly a bug? Known bug? Or, if it is a feature, is there an option to revert to old behavior?

I have set my cookie options to always accept first party only, and keep until end of session. Obviously, cookies do evaporate when FF is restarted, and this is what I want. I do want this behavior overridden for some specific sites. For example, I want to keep cookies from sites in the google.com, accounts.google.com in particular. Up until FF 38 (I think -- the behavior broke fairly recently), I had an exception for google.com to Allow cookies (see about:preferences#privacy). The Allow setting implied the cookies were not erased at end of session (there is also Allow for Session exceprtion). This is not true any more. Even though I added an exception for both google.com and accounts.google.com, and I can indeed confirm that these sites have added non-session cookies after I log on, these cookies disappear when I restart FF. Has anything changed in the treatment of cookie exceptions? Is this plainly a bug? Known bug? Or, if it is a feature, is there an option to revert to old behavior?

被采纳的解决方案

Are you letting the cookies expire when you close Firefox or are you using "Clear history when Firefox closes" to clear the cookies?

The latter removes all the cookies regardless of an allow exception.


If you use "Clear history when Firefox closes" to clear Cookies then exclude the cookies and instead let the cookies expire when you close Firefox 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
  • 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.
定位到答案原位置 👍 0

所有回复 (2)

more options

选择的解决方案

Are you letting the cookies expire when you close Firefox or are you using "Clear history when Firefox closes" to clear the cookies?

The latter removes all the cookies regardless of an allow exception.


If you use "Clear history when Firefox closes" to clear Cookies then exclude the cookies and instead let the cookies expire when you close Firefox 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
  • 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.
more options

cor-el said

Are you letting the cookies expire when you close Firefox or are you using "Clear history when Firefox closes" to clear the cookies?

My bad, thanks. That was it.