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

What's the difference between keep cookies until I close firefox and clear cookie history when firefox closes?

  • 4 பதிலளிப்புகள்
  • 2 இந்த பிரச்னைகள் உள்ளது
  • 1 view
  • Last reply by cor-el

In the settings for Firefox 33.0 (I am using Ubuntu 14.04 but the functionality is the same for Windows 7) there are two different ways to delete cookies when firefox closes. Or at least there seems to be.

First is the keep cookies until firefox closes

Second is to check the box to clear history when firefox closes and in the settings check cookies.

What is the difference between these two options?

I usually have both setup but I was noticing that a login was not saving for td canada trust easyweb, even though I have an exception set for it. Now I unchecked to delete cookies when clearing the history on close and the login saves correctly.

This login saves 7 cookes under easyweb.td.com and 10 cookies under td.com and I have exceptions set for both. If I clear history on close and include cookies, half of the td.com cookies are gone when I close firefox and re-open. The same is true if I don't set the exception.

So currently I cannot figure out a way to keep all the cookies if I clear cookie history when firefox closes. What is the difference when this is enabled?

In the settings for Firefox 33.0 (I am using Ubuntu 14.04 but the functionality is the same for Windows 7) there are two different ways to delete cookies when firefox closes. Or at least there seems to be. First is the keep cookies until firefox closes Second is to check the box to clear history when firefox closes and in the settings check cookies. What is the difference between these two options? I usually have both setup but I was noticing that a login was not saving for td canada trust easyweb, even though I have an exception set for it. Now I unchecked to delete cookies when clearing the history on close and the login saves correctly. This login saves 7 cookes under easyweb.td.com and 10 cookies under td.com and I have exceptions set for both. If I clear history on close and include cookies, half of the td.com cookies are gone when I close firefox and re-open. The same is true if I don't set the exception. So currently I cannot figure out a way to keep all the cookies if I clear cookie history when firefox closes. What is the difference when this is enabled?

தீர்வு தேர்ந்தெடுக்கப்பட்டது

When you change the default cookie "lifetime" from "Keep until: they expire" to "Keep until: I close Firefox", Firefox changes any persistent cookies that sites set to session cookies. To allow a site to set a persistent cookie, you need to make an exception (site permission).

When you turn on the clearing of history at shutdown and include cookies, that runs a completely separate process which does not pay any attention to cookie lifetime or exceptions (site permissions). It just nukes them all.

Note that some cookies might survive clearing at shutdown if they are encoded into your session history file, the one Firefox uses to restore your previous session windows and tabs. I haven't tested.

Read this answer in context 👍 5

All Replies (4)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

When you change the default cookie "lifetime" from "Keep until: they expire" to "Keep until: I close Firefox", Firefox changes any persistent cookies that sites set to session cookies. To allow a site to set a persistent cookie, you need to make an exception (site permission).

When you turn on the clearing of history at shutdown and include cookies, that runs a completely separate process which does not pay any attention to cookie lifetime or exceptions (site permissions). It just nukes them all.

Note that some cookies might survive clearing at shutdown if they are encoded into your session history file, the one Firefox uses to restore your previous session windows and tabs. I haven't tested.

Let all cookies expire when Firefox is closed to make them session cookies.

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Keep until: "I close Firefox"

Create a cookie 'allow' exception for cookies that you would like to keep.

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions

Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.

Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

Both answers were completely satisfactory. Although the unchosen answer is a little nicer organized, the chosen answer contains an extra piece of information that helped me to better understand how Firefox handles clearing cookies: i.e., there may still be some cookies that are not deleted from the session history.

From what I understand, the only functional difference between changing the cookie expiration date and telling the browser to clear cookies with history on close, is that the latter will bypass exceptions?

So if I always want all cookies deleted I should clear cookies with history when firefox closes. If I want to set any exceptions I need to use the setting to change the default expiration for cookies to when the browser closes.

You can't use exceptions if use "Clear history when Firefox closes" because that removes all the cookies whether they have an allow exception or not. Cookies stored as part of session data may still be kept if you use "Clear history when Firefox closes" and there is an allow exception.

You can set the browser.sessionstore.privacy_level pref to 2 (never) or 1 (non-HTTPS) on the about:config page to disable saving cookies via session restore in the sessionstore.js file. The browser.sessionstore.privacy_level_deferred pref is used when you do not reopen the previous session automatically via "Show my windows and tabs from last time" and uses the same values.