Enable and disable cookies that websites use to track your preferences

Revision Information
  • Revision id: 94564
  • Created:
  • Creator: Joni
  • Comment: Adding back Hbloomer's change now that about:preferences is active
  • Reviewed: Yes
  • Reviewed:
  • Reviewed by: heyjoni
  • Is approved? Yes
  • Is current revision? No
  • Ready for localization: No
Revision Source
Revision Content

Cookies are stored on your computer by websites you visit and contain information such as site preferences or login status. This article describes how to enable and disable cookies in Firefox.

How do I change cookie settings?

Note: Cookies are enabled by default in Firefox.

To check or change your settings:

  1. In the Menu bar at the top of the screen, click Firefox and then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.
  2. Select the Privacy & Security panel and go to the History section.

  3. In the drop-down menu next to Firefox will, choose Use custom settings for history.
  4. Check mark Accept cookies from sites to enable Cookies, and uncheck it to disable them.
    Cookies WinCookies MacCookies Lin
  5. Choose how long cookies are allowed to be stored:
    • Keep until: they expire: Each cookie will be removed when it reaches its expiration date, which is set by the site that sent the cookie.
    • Keep until: I close Firefox: The cookies that are stored on your computer will be removed when Firefox is closed.
    • Keep until: ask me every time: Displays an alert every time a website tries to send a cookie, and asks you whether or not you want to store it.
  6. Close the Settings page. Any changes you've made will automatically be saved.
  1. In the Menu bar at the top of the screen, click Firefox and then select Preferences or Settings, depending on your macOS version.Click the menu button Fx89menuButton and select Settings.
  2. Click the Privacy tab
  3. Set Firefox will: to Use custom settings for history.PrivacyCustom36
  4. Check mark Accept cookies from sites to enable Cookies, and uncheck it to disable them.
    Cookies Win Fx22PrivacyCookies3rd Party Cookies Linux Fx22
  5. Choose how long cookies are allowed to be stored:
    • Keep until: they expire: Each cookie will be removed when it reaches its expiration date, which is set by the site that sent the cookie.
    • Keep until: I close Firefox: The cookies that are stored on your computer will be removed when Firefox is closed.
    • Keep until: ask me every time: Displays an alert every time a website tries to send a cookie, and asks you whether or not you want to store it.
  6. Close the Settings page. Any changes you've made will automatically be saved.

Websites report cookie errors

If a website gives you an error message saying that you cannot accept cookies, see Websites say cookies are blocked - Unblock them.