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!

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

Can we get a "keep until ..." option for third party cookies and site data, just like the option for first party cookies?

  • 2 replies
  • 1 has this problem
  • 1 view
  • Last reply by kevwil

more options

Since Firefox can differentiate between first party and third party cookies & site data, it would be great to have a general setting to delete third party cookies & site data when I close Firefox. This way I can accept all these annoying cookie policy agreements without opting in to tracking.

Since Firefox can differentiate between first party and third party cookies & site data, it would be great to have a general setting to delete third party cookies & site data when I close Firefox. This way I can accept all these annoying cookie policy agreements without opting in to tracking.

Chosen solution

There is a setting to make all third party cookies "session only" cookies, so if that's what you were planning to select, this should take care of it:

(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 or accepting the risk.

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

(3) Double-click the network.cookie.thirdparty.sessionOnly preference to switch the value from false to true

I notice there's also network.cookie.thirdparty.nonsecureSessionOnly but I don't know whether you need to change that one, too. I guess it can't hurt.

Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

There is a setting to make all third party cookies "session only" cookies, so if that's what you were planning to select, this should take care of it:

(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 or accepting the risk.

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

(3) Double-click the network.cookie.thirdparty.sessionOnly preference to switch the value from false to true

I notice there's also network.cookie.thirdparty.nonsecureSessionOnly but I don't know whether you need to change that one, too. I guess it can't hurt.

more options

That should work, thanks! I think a UI for this would be nice to have, but I'm happy this behavior can be set at all.