Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Allow persistent cookies from bookmarked sites?

  • 2 antwoorde
  • 1 het hierdie probleem
  • 22 views
  • Laaste antwoord deur rickvanderzwet

more options

I have configured Firefox to clear cookies (and other temporary data) when it closes. Basically giving me a clear state every time I start a new instance of Firefox.

How-ever I would like to keep my cookies for bookmarked sites, since those cookies are considered useful to me. For example clicking on consent windows every day I visit a 'favorites' site is somehow annoying. .

Any suggestions?
I have configured Firefox to clear cookies (and other temporary data) when it closes. Basically giving me a clear state every time I start a new instance of Firefox. How-ever I would like to keep my cookies for bookmarked sites, since those cookies are considered useful to me. For example clicking on consent windows every day I visit a 'favorites' site is somehow annoying. . Any suggestions?

Gekose oplossing

Hi rickvanderzwet, currently, I can't think of any built-in feature to give permission to bookmarked sites automatically.

As a starting point, you could change the allowed lifetime of cookies from "however long the sites wants" to "session only" by changing this setting on the Options page:

  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

In the left column, click Privacy & Security. Then on the right side:

In the History section, either:

  • Firefox will: Remember history -- no problem
  • Firefox will: Use custom settings for history -- check this:
    • If there is a check for "Clear history when Firefox closes" click the Settings button and make sure Cookies are NOT set to be cleared

In the Cookies and Site Data section:

  • Keep until: Firefox is closed -- by default, cookies are only saved as session cookies, not "persistent" cookies, except for sites listed as "Allow" in the Exceptions list

With that combination, cookies will be cleared when you Exit Firefox, but you have the possibility to create persistent cookies by giving those sites "Allow" permission.

Now, how can we connect that with bookmarks? I'm pretty sure you would need an add-on for that. While there are lots of bookmark add-ons and lots of cookie add-ons, I don't know whether there is any add-on that does what you want. It's worth a search:

https://addons.mozilla.org/firefox/extensions/

If nothing useful appears, you can create exceptions as you go. While you are on a site that you want to have persistent cookie permission, you can set that using the Permissions panel of the Page Info dialog. Either:

  • right-click a blank area of the page and choose View Page Info > Permissions
  • (menu bar) Tools menu > Page Info > Permissions
  • click the padlock or "i" icon to the left of the site address, then the ">" icon, then More Information > Permissions

Scroll down to "Set Cookies" and uncheck the "Use default" box, and then select the permission you prefer.

Existing cookies may still be good only for the current session, but new cookies the site sets should be for the period the site requests.

Lees dié antwoord in konteks 👍 0

All Replies (2)

more options

Gekose oplossing

Hi rickvanderzwet, currently, I can't think of any built-in feature to give permission to bookmarked sites automatically.

As a starting point, you could change the allowed lifetime of cookies from "however long the sites wants" to "session only" by changing this setting on the Options page:

  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

In the left column, click Privacy & Security. Then on the right side:

In the History section, either:

  • Firefox will: Remember history -- no problem
  • Firefox will: Use custom settings for history -- check this:
    • If there is a check for "Clear history when Firefox closes" click the Settings button and make sure Cookies are NOT set to be cleared

In the Cookies and Site Data section:

  • Keep until: Firefox is closed -- by default, cookies are only saved as session cookies, not "persistent" cookies, except for sites listed as "Allow" in the Exceptions list

With that combination, cookies will be cleared when you Exit Firefox, but you have the possibility to create persistent cookies by giving those sites "Allow" permission.

Now, how can we connect that with bookmarks? I'm pretty sure you would need an add-on for that. While there are lots of bookmark add-ons and lots of cookie add-ons, I don't know whether there is any add-on that does what you want. It's worth a search:

https://addons.mozilla.org/firefox/extensions/

If nothing useful appears, you can create exceptions as you go. While you are on a site that you want to have persistent cookie permission, you can set that using the Permissions panel of the Page Info dialog. Either:

  • right-click a blank area of the page and choose View Page Info > Permissions
  • (menu bar) Tools menu > Page Info > Permissions
  • click the padlock or "i" icon to the left of the site address, then the ">" icon, then More Information > Permissions

Scroll down to "Set Cookies" and uncheck the "Use default" box, and then select the permission you prefer.

Existing cookies may still be good only for the current session, but new cookies the site sets should be for the period the site requests.

more options

Thanks, this work-around works fine.

The Add-on Forget Me Not also seems to work well when making exceptions to the 'not-to-be-deleted' list.