ابحث في الدعم

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

firefox 55.0.3, accept cookies unchecked, cookie allow exceptions do not work-- basically they are ignored. Earlier versions worked.

  • 31 ردًا
  • 23 have this problem
  • 34 views
  • آخر ردّ كتبه oygle

more options

Firefox 55.0.3, windows 10

The goal is to not accept any cookies except ones that I specifically allow. (For example for my webmail account.)

I am trying these settings:

Accept cookies unchecked. cookie exeptions allow. Tried all combinations for "always use private browsing mode" and "clear history when firefox closes."

Basically it ignores the cookies exceptions. This used to work fine on previous firefox versions, on other computers. The failure described here occurs for installations of firefox 55.0.3 on two different windows 10 computers.

Firefox 55.0.3, windows 10 The goal is to not accept any cookies except ones that I specifically allow. (For example for my webmail account.) I am trying these settings: Accept cookies unchecked. cookie exeptions allow. Tried all combinations for "always use private browsing mode" and "clear history when firefox closes." Basically it ignores the cookies exceptions. This used to work fine on previous firefox versions, on other computers. The failure described here occurs for installations of firefox 55.0.3 on two different windows 10 computers.

الحل المُختار

Hi jstr4900, how do you create your cookie exceptions? To get the proper syntax, I suggest using the Permissions panel of the Page Info dialog. When you are on a site that you want to allow to set cookies, you can call that up using any of these:

  • right-click a blank area of the page and choose View Page Info > Permissions
  • (menu bar) Tools menu > Page Info > Permissions
  • click the padlock or "i" icon to the left of the site address, then the ">" icon, then More Information > Permissions

Scroll down to "Set Cookies" and uncheck the "Use default" box, and then select the permission you prefer.

Permission changes are saved as you make them, so you can close this window when you're done with it.

Do those work any better?

Read this answer in context 👍 0

All Replies (11)

more options

jstr4900 said

WillW reported having success with unchecking "allow cookies" and using the exceptions list, but I am now doubting this. At this point nobody else has reported that the exceptions list works at all. (Please, see my craigslist example above and see if the cookie exceptions works-- if it does, please report back here.)

Obviously there's no way for me to demonstrate that some exceptions are working on my Firefox installation, but trust me that I'm not a novice with either computers or Firefox (30+ years with the former and 10+ with the latter). I am absolutely 100% positive that the "Allow" cookie exception is working as intended on my installation.

It would be immediately obvious to me if they were not working, since there are several sites that I use on a daily basis that require logins.

But like I mentioned, there are settings that don't work for me - the "Allow for session" cookies, which Firefox just treats as "Allow" cookies. And I'm also on Windows 7 not Windows 10.

more options

WillW said

But like I mentioned, there are settings that don't work for me - the "Allow for session" cookies, which Firefox just treats as "Allow" cookies. And I'm also on Windows 7 not Windows 10.

Do you restore your previous session when you start Firefox? That can extend the life of cookies in your session history file since, by default, Firefox does keep them for all open tabs plus the closed tabs it remembers.

To prevent saving session cookies and certain other state data (such as form data) for pages in session history, you can modify a setting:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionstore.privacy_level preference and enter the desired value:

  • 0 (default) - save for all sites
  • 1 - save for HTTP but not for HTTPS
  • 2 - don't save for any site

Or as set out in the source code file:

// on which sites to save text data, POSTDATA and cookies
// 0 = everywhere, 1 = unencrypted sites, 2 = nowhere
more options

What cookies and other storage data is stored when you temporarily enable all cookies?

See also the Storage Inspector:

more options

jscher2000 said

Do you restore your previous session when you start Firefox? That can extend the life of cookies in your session history file since, by default, Firefox does keep them for all open tabs plus the closed tabs it remembers.

That would probably explain it then. I didn't know that Firefox remembered cookies even from closed tabs.

I don't know if any of the proposed settings for browser.sessionstore.privacy_level will help me though. Basically what I'm looking for from Firefox is the following behavior:

- Firefox does not allow any cookies except from domains I specify in the exceptions list. - For domains set to "Allow," the cookies persist across sessions and are never deleted by Firefox. - For domains set to "Allow for Session," the cookies persist for the current session only and are deleted by Firefox as soon as Firefox closes (or is restarted).

It seems that whatever I set browser.sessionstore.privacy_level to, I will not be able to fulfill those three conditions (it's currently set to 0). Either I'll lose cookies I want to keep, or cookies I want deleted when Firefox restarts won't be.

I should point out here that the issue I'm having is distinct from jstr4900's, the question owner. I probably shouldn't have posted here in the first place and just started a new question. But regardless any solution for the problem I'm having will not help them.

Modified by WillW

more options

WillW said

It seems that whatever I set browser.sessionstore.privacy_level to, I will not be able to fulfill those three conditions (it's currently set to 0). Either I'll lose cookies I want to keep, or cookies I want deleted when Firefox restarts won't be.

This setting is solely related to the session history file, which preserves session cookies for open tabs and the closed tabs that you can re-open (up to 10 tabs per window). All other session cookies are already cleared in your next session. Persistent cookies (allowed by "Allow") are stored in cookies.sqlite and are not affected by this setting.

more options

jscher2000 said

This setting is solely related to the session history file, which preserves session cookies for open tabs and the closed tabs that you can re-open (up to 10 tabs per window). All other session cookies are already cleared in your next session. Persistent cookies (allowed by "Allow") are stored in cookies.sqlite and are not affected by this setting.

Okay thanks very much. I'll try tinkering with it.

more options

jsher2000,

Your suggestion finally produced pay dirt. I think a couple suggestion by cor-el were also very good, but I was still not careful enough. Your specific suggestions (previous post) were sufficient to finally get through to me.

I still can't log into my webmail server, but now it is a different problem that I can work on. All of the cookies that show up (under "show cookies" are allowed, but it still doesn't permit the log-in. It might be that the site sends a short-lived cookie or something that I am not seeing.

Everyone, thank you very much, and I encourage WillW to try the suggestions.

more options

Email is working now too. Thanks again everyone.

more options

Firefox 57.0 (64 bit)

I'm getting this problem also. There is a website that I don't even visit and I noticed that site kept getting a cookie set. So I added an entry in the 'cookies exceptions', and marked it 'block'. Then checked to see it was in the exception list, and it was.

Then exited firefox, opened again, checked cookies exceptions and it was gone ??

more options

Hi oygle, your new reply is on the second page of a solved post, so I suggest starting a new question:

https://support.mozilla.org/questions/new/desktop/fix-problems

As you know, you need to scroll down past article suggestions to continue with the form.

As a footnote, you may see cookies related to SafeBrowsing data retrieved from Google, and cookies related to your add-ons, so those are some more leads to chase down.

more options

Okay thanks, I'll do that.  :)

  1. 1
  2. 2