We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

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

Exceptions to deleting cookies upon exit

  • 2 replies
  • 1 has this problem
  • 19 views
  • Last reply by crl4242

more options

Hi,

I normally delete all history, including cookies, each time I log out of Firefox 99.0. I have two sites for which I would like to keep cookies. I entered them as exceptions, but each time I log out those exceptions are lost.

Is there any way I can those specific cookies?

Thank you.

Hi, I normally delete all history, including cookies, each time I log out of Firefox 99.0. I have two sites for which I would like to keep cookies. I entered them as exceptions, but each time I log out those exceptions are lost. Is there any way I can those specific cookies? Thank you.

Chosen solution

Make sure you use "Delete cookies and site data when Firefox is closed" and not "Clear history when Firefox closes" to clear the cookies as the latter doesn't honor exceptions. Also make sure you keep the Site Preferences as clearing the SP includes exceptions.


You can use these steps to make a website recognize and remember you.

  • create a cookie allow exception with the proper protocol (https:// or http://) to make a website remember you

You can check that you aren't clearing important cookies.

  • using "Delete cookies and site data when Firefox is closed" keeps cookies with an allow exception
  • using "Clear history when Firefox closes" to clear cookies clears all cookies including cookies with an allow exception you may want to keep
  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • Settings -> Privacy & Security
    Cookies and Site Data: "Manage Exceptions"
  • Settings -> Privacy & Security
    Firefox will: "Use custom settings for history":
    [X] "Clear history when Firefox closes" -> Settings
Read this answer in context 👍 1

All Replies (2)

more options

Chosen Solution

Make sure you use "Delete cookies and site data when Firefox is closed" and not "Clear history when Firefox closes" to clear the cookies as the latter doesn't honor exceptions. Also make sure you keep the Site Preferences as clearing the SP includes exceptions.


You can use these steps to make a website recognize and remember you.

  • create a cookie allow exception with the proper protocol (https:// or http://) to make a website remember you

You can check that you aren't clearing important cookies.

  • using "Delete cookies and site data when Firefox is closed" keeps cookies with an allow exception
  • using "Clear history when Firefox closes" to clear cookies clears all cookies including cookies with an allow exception you may want to keep
  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • Settings -> Privacy & Security
    Cookies and Site Data: "Manage Exceptions"
  • Settings -> Privacy & Security
    Firefox will: "Use custom settings for history":
    [X] "Clear history when Firefox closes" -> Settings
more options

Thanks again for your help.