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

What line can I add to prefs.js (firefox v22) ensure that 3rd party cookies are allowed?

  • 2 replies
  • 2 have this problem
  • 1 view
  • Last reply by cor-el

more options

I'm running a program with selenium and it was working fine, then I updated to firefox version 22 and now its throwing my error saying 3rd party cookies need to be enabled. Is there a line of code I can add to prefs.js in order to ensure that 3rd party cookies are enabled?

I'm running a program with selenium and it was working fine, then I updated to firefox version 22 and now its throwing my error saying 3rd party cookies need to be enabled. Is there a line of code I can add to prefs.js in order to ensure that 3rd party cookies are enabled?

Chosen solution

Note that current Firefox releases have a new setting to accept third-party cookie from sites that you have visited before.

  • Always : network.cookie.cookieBehavior = 0
  • Never  : network.cookie.cookieBehavior = 1
  • Visited: network.cookie.cookieBehavior = 3
  • Block all cookies: network.cookie.cookieBehavior = 2
Read this answer in context 👍 0

All Replies (2)

more options

user_pref("network.cookie.cookieBehavior", 0);

Note: That is the default in Firefox 22.

Modified by jscher2000 - Support Volunteer

more options

Chosen Solution

Note that current Firefox releases have a new setting to accept third-party cookie from sites that you have visited before.

  • Always : network.cookie.cookieBehavior = 0
  • Never  : network.cookie.cookieBehavior = 1
  • Visited: network.cookie.cookieBehavior = 3
  • Block all cookies: network.cookie.cookieBehavior = 2