X
Tap here to go to the mobile version of the site.

Support Forum

Firefox deletes ALL cookies upon closing, but I have allow cookies for some sites. How can I save JUST the cookies for allowed sites?

Posted

Firefox deletes ALL cookies upon closing, but I have allow cookies for some sites. How can I save JUST the cookies for allowed sites? This used to work in Firefox.

Firefox deletes ALL cookies upon closing, but I have allow cookies for some sites. How can I save JUST the cookies for allowed sites? This used to work in Firefox.

Chosen solution

The Preferences page has been rearranged, so there are at least two relevant sections.

Default All Cookies to Session-only

The setting to dump cookies automatically at the end of your regular session is now here:

  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Windows: "3-bar" menu button (or Tools menu) > Options
  • 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, and on the right side, scroll down to the Cookies and Site Data section.

The checkbox for "Delete cookies and site data when Firefox is closed" works as follows:

(A) If the box is NOT checked, then Firefox lets sites specify how long Firefox will retain their cookies. (Like the old "Keep until: they expire")

(B) If the box IS checked, then Firefox shortens the site's preferred expiration time to the end of the current session. (Like the old "Keep until: Firefox is closed") You can let sites store persistent cookies by creating an exception using the Manage Permissions button. Format note, include the protocol, for example:

Exceptions are only needed if you want to stay logged in to a site.

Turn off or Adjust the Clear History Feature

Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature.

To check on this, scroll down to the History section

Select:

"Firefox will: Use custom settings for history"

If you have a check mark for "Clear history when Firefox closes" then either:

  • Uncheck this option to preserve your cookies and other history
  • Click the Settings button to the right of this line and uncheck the box for Cookies

Can you get it to work the way you want?

Read this answer in context 1

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

More Information

jscher2000
  • Top 10 Contributor
8643 solutions 70728 answers

Chosen Solution

The Preferences page has been rearranged, so there are at least two relevant sections.

Default All Cookies to Session-only

The setting to dump cookies automatically at the end of your regular session is now here:

  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Windows: "3-bar" menu button (or Tools menu) > Options
  • 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, and on the right side, scroll down to the Cookies and Site Data section.

The checkbox for "Delete cookies and site data when Firefox is closed" works as follows:

(A) If the box is NOT checked, then Firefox lets sites specify how long Firefox will retain their cookies. (Like the old "Keep until: they expire")

(B) If the box IS checked, then Firefox shortens the site's preferred expiration time to the end of the current session. (Like the old "Keep until: Firefox is closed") You can let sites store persistent cookies by creating an exception using the Manage Permissions button. Format note, include the protocol, for example:

Exceptions are only needed if you want to stay logged in to a site.

Turn off or Adjust the Clear History Feature

Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature.

To check on this, scroll down to the History section

Select:

"Firefox will: Use custom settings for history"

If you have a check mark for "Clear history when Firefox closes" then either:

  • Uncheck this option to preserve your cookies and other history
  • Click the Settings button to the right of this line and uncheck the box for Cookies

Can you get it to work the way you want?

The Preferences page has been rearranged, so there are at least two relevant sections. '''''Default All Cookies to Session-only''''' The setting to dump cookies automatically at the end of your regular session is now here: * Mac: "3-bar" menu button (or Firefox menu) > Preferences * Windows: "3-bar" menu button (or Tools menu) > Options * 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''', and on the right side, scroll down to the '''Cookies and Site Data''' section. The checkbox for "Delete cookies and site data when Firefox is closed" works as follows: (A) If the box is NOT checked, then Firefox lets sites specify how long Firefox will retain their cookies. (Like the old "Keep until: they expire") (B) If the box IS checked, then Firefox shortens the site's preferred expiration time to the end of the current session. (Like the old "Keep until: Firefox is closed") You can let sites store persistent cookies by creating an exception using the Manage Permissions button. Format note, include the protocol, for example: * https://mozilla.org => Allow * http://mozillazine.org => Allow ''Exceptions are only needed if you want to stay logged in to a site.'' '''''Turn off or Adjust the Clear History Feature''''' Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature. To check on this, scroll down to the '''History''' section Select: "Firefox will: Use custom settings for history" If you have a check mark for "Clear history when Firefox closes" then either: * Uncheck this option to preserve your cookies and other history * Click the Settings button to the right of this line and uncheck the box for Cookies Can you get it to work the way you want?
sushi4 0 solutions 2 answers

Helpful Reply

jscher2000 said

The Preferences page has been rearranged, so there are at least two relevant sections. Default All Cookies to Session-only The setting to dump cookies automatically at the end of your regular session is now here:
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Windows: "3-bar" menu button (or Tools menu) > Options
  • 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, and on the right side, scroll down to the Cookies and Site Data section. The checkbox for "Delete cookies and site data when Firefox is closed" works as follows: (A) If the box is NOT checked, then Firefox lets sites specify how long Firefox will retain their cookies. (Like the old "Keep until: they expire") (B) If the box IS checked, then Firefox shortens the site's preferred expiration time to the end of the current session. (Like the old "Keep until: Firefox is closed") You can let sites store persistent cookies by creating an exception using the Manage Permissions button. Format note, include the protocol, for example: Exceptions are only needed if you want to stay logged in to a site. Turn off or Adjust the Clear History Feature Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature. To check on this, scroll down to the History section Select: "Firefox will: Use custom settings for history" If you have a check mark for "Clear history when Firefox closes" then either:
  • Uncheck this option to preserve your cookies and other history
  • Click the Settings button to the right of this line and uncheck the box for Cookies
Can you get it to work the way you want?

I suggest also to uncheck "Site preference" in "Clear history when Firefox closes">Settings, so your exceptions for allowed sites are not cleared when Firefox closes.

''jscher2000 [[#answer-1206168|said]]'' <blockquote> The Preferences page has been rearranged, so there are at least two relevant sections. '''''Default All Cookies to Session-only''''' The setting to dump cookies automatically at the end of your regular session is now here: * Mac: "3-bar" menu button (or Firefox menu) > Preferences * Windows: "3-bar" menu button (or Tools menu) > Options * 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''', and on the right side, scroll down to the '''Cookies and Site Data''' section. The checkbox for "Delete cookies and site data when Firefox is closed" works as follows: (A) If the box is NOT checked, then Firefox lets sites specify how long Firefox will retain their cookies. (Like the old "Keep until: they expire") (B) If the box IS checked, then Firefox shortens the site's preferred expiration time to the end of the current session. (Like the old "Keep until: Firefox is closed") You can let sites store persistent cookies by creating an exception using the Manage Permissions button. Format note, include the protocol, for example: * https://mozilla.org => Allow * http://mozillazine.org => Allow ''Exceptions are only needed if you want to stay logged in to a site.'' '''''Turn off or Adjust the Clear History Feature''''' Firefox also can delete all cookies -- disregarding exceptions -- using the feature to Clear history when Firefox closes. If you want to keep some cookies, do not use this feature. To check on this, scroll down to the '''History''' section Select: "Firefox will: Use custom settings for history" If you have a check mark for "Clear history when Firefox closes" then either: * Uncheck this option to preserve your cookies and other history * Click the Settings button to the right of this line and uncheck the box for Cookies Can you get it to work the way you want? </blockquote> I suggest also to uncheck "Site preference" in "Clear history when Firefox closes">Settings, so your exceptions for allowed sites are not cleared when Firefox closes.
Quenchoo 0 solutions 7 answers

I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that? Also, the recommended response above states "Exceptions are only needed if you want to stay logged in to a site". For my purposes, do I need to put the same domain name (I know about http: with and without the 's') under Exceptions, if my only goal is to be able to have my computer recognized by that site when I next log in, having cleared cookies upon logging out the last time? This site web support has stated to me several times that it all comes down to their being able to cookies from the previous session, but so far I have trouble getting my PC recognized, despite using Manager Permissions.

I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that? Also, the recommended response above states "Exceptions are only needed if you want to stay logged in to a site". For my purposes, do I need to put the same domain name (I know about http: with and without the 's') under Exceptions, if my only goal is to be able to have my computer recognized by that site when I next log in, having cleared cookies upon logging out the last time? This site web support has stated to me several times that it all comes down to their being able to cookies from the previous session, but so far I have trouble getting my PC recognized, despite using Manager Permissions.
jscher2000
  • Top 10 Contributor
8643 solutions 70728 answers

Quenchoo said

I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that?

Three things:

(1) Create one or more "Allow" exceptions in Manage Permissions

(2) Check the box for "Delete cookies and site data when Firefox is closed"

(3) UNCHECK the box for Cookies under "Clear history when Firefox closes" > "Settings" (this feature will blow away all cookies whether you made an exception or not)

''Quenchoo [[#answer-1246925|said]]'' <blockquote> I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that?</blockquote> Three things: (1) Create one or more "Allow" exceptions in Manage Permissions (2) Check the box for "Delete cookies and site data when Firefox is closed" (3) UNCHECK the box for Cookies under "Clear history when Firefox closes" > "Settings" ''(this feature will blow away all cookies whether you made an exception or not)''
sushi4 0 solutions 2 answers

Helpful Reply

jscher2000 said

Quenchoo said
I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that?

Three things:

(1) Create one or more "Allow" exceptions in Manage Permissions

(2) Check the box for "Delete cookies and site data when Firefox is closed"

(3) UNCHECK the box for Cookies under "Clear history when Firefox closes" > "Settings" (this feature will blow away all cookies whether you made an exception or not)

Some websites use cookies in several (sub-)domains to store user session. In my experience, Gmail requires allow cookies for google.com, accounts.google.com, and mail.google.com so I can stay logged in after Firefox restarts.

I suggest, after you're logged in, to check for which (sub-)domains your cookies are stored. To do so :

  • Click the button "Manage Data..." under "Cookies and Site Data" section in the preferences.

So you could allow relevant (sub-)domains (one by one, until you get the desired outcome) into the exceptions list in "Manage Permissions...".

FYI, you could you an extension, such as Cookie AutoDelete, to ease the process of whitelisting cookies for relevant (sub-)domains of a current page you're on.

''jscher2000 [[#answer-1246932|said]]'' <blockquote> ''Quenchoo [[#answer-1246925|said]]'' <blockquote> I want to automatically clear history when Firefox closes, except for one domain which is now set up to allow access by only my PC (unrecognized computer restriction), for which the site needs to see its cookies on my PC from the previous session. Do I correctly understand that listing this domain in Manage Permissions will accomplish exactly that?</blockquote> Three things: (1) Create one or more "Allow" exceptions in Manage Permissions (2) Check the box for "Delete cookies and site data when Firefox is closed" (3) UNCHECK the box for Cookies under "Clear history when Firefox closes" > "Settings" ''(this feature will blow away all cookies whether you made an exception or not)'' </blockquote> Some websites use cookies in several (sub-)domains to store user session. In my experience, Gmail requires allow cookies for google.com, accounts.google.com, and mail.google.com so I can stay logged in after Firefox restarts. I suggest, after you're logged in, to check for which (sub-)domains your cookies are stored. To do so : * Click the button "Manage Data..." under "Cookies and Site Data" section in the preferences. So you could allow relevant (sub-)domains (one by one, until you get the desired outcome) into the exceptions list in "Manage Permissions...". FYI, you could you an extension, such as [https://addons.mozilla.org/fr/firefox/addon/cookie-autodelete/ Cookie AutoDelete], to ease the process of whitelisting cookies for relevant (sub-)domains of a current page you're on.

Modified by sushi4