Enable and disable cookies that websites use to track your preferences

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. Click the menu button New Fx Menu Fx57Menu and choose Options.Preferences.
  2. Select the PrivacyPrivacy & Security panel and go to the History section.

  3. In the drop-down menu next to Firefox will:Firefox will, choose Use custom settings for history.
    customhistory38 Fx56Privacy&Security-CustomHistory-new CustomHistory fx57 Fx60HistorySettings-UseCustom
  4. Check-mark Accept cookies from sitesAccept cookies from websites to enable cookies, and uncheck it to disable them.
    PrivacyCookies Fx56CustomHistory-cookies Fx57CustomHistory
  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.
      I close Firefox: The cookies that are stored on your computer will be removed when Firefox is closed.
  6. Close the about:preferences page. Any changes you've made will automatically be saved.
  1. Click the menu button New Fx Menu Fx57Menu and choose Options.Preferences.
  2. Select the Privacy & Security panel and go to the Cookies and Site Data section.
  3. Select Accept cookies and site data from websites (recommended) to enable cookies. To disable cookies, select Block cookies and site data (may cause websites to break).
    Fx60Settings-CookiesAndSiteData Fx61settings-CookiesAndSiteData
  4. Choose how long cookies are allowed to be stored:
    • Keep until:
      they expireThey expire: Each cookie will be removed when it reaches its expiration date, which is set by the site that sent the cookie.
      I close FirefoxFirefox is closed: The cookies that are stored on your computer will be removed when Firefox is closed.
  5. Close the about:preferences page. Any changes you've made will automatically be saved.
  1. Click the menu button New Fx Menu Fx57Menu and choose Options.Preferences.
  2. Select the Privacy & Security panel and go to the Cookies and Site Data section.
    Fx63settings-AcceptCookies
  3. Select Accept cookies and site data to enable cookies. To disable cookies, select Block cookies and site data and use the drop-down menu next to Type blocked to choose the type of cookies to block.
  4. 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.
      Firefox is closed: The cookies that are stored on your computer will be removed when Firefox is closed.
  5. Close the about:preferences 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.

// These fine people helped write this article:AliceWyman, Chris Ilias, philipp, Cheng Wang, novica, Tonnes, Michael Verdi, scoobidiver, Swarnava Sengupta, soucet, Miranda, Lan, scootergrisen, Joni, Artist. You can help too - find out how.

Was this article helpful? Please wait...

Volunteer for Mozilla Support