為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

change in logging in/out status

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 cor-el

more options

Since forever, when I close a FF tab or window, I remain logged into sites (except when I log out myself) Recently (?the latest update?), I'm logged out of every site every time. Very time consuming! Is there a solution?

Michael

Since forever, when I close a FF tab or window, I remain logged into sites (except when I log out myself) Recently (?the latest update?), I'm logged out of every site every time. Very time consuming! Is there a solution? Michael

被選擇的解決方法

Hi Michael, sites recognize you as having logged in when your browser sends back the cookie they set back at the time of login. If the cookie is gone, you're a nobody to them and you need to log in again.

There are quite a few possible reasons to lose cookies between sessions. These include Firefox privacy settings, add-ons, and external cleaners. Let's check:

Options page > Privacy & Security panel

(1) Cookies and Site Data section

The checkbox here for "Delete cookies and site data when Firefox is closed" determines whether cookies are set to expire automatically at the end of your Firefox session:

  • Unchecked => Firefox sets the expiration based on what the site requested
  • Checked => Firefox sets the expiration to "Session only" -- so cookies won't survive the shutdown/restart

The "Manage Permissions" dialog is where you would list sites that are an exception to your standard rule. For example, if you force all cookies to session but you want to stay logged in on certain sites, you could add those sites here with an "Allow" exception.

(2) History section

The main selector here has three options:

  • Firefox will: Remember history => cookies should not get cleared automatically
  • Firefox will: Never remember history => forces automatic private browsing, so cookies are stored only in memory for the duration of your session
  • Firefox will: Use custom settings for history => it depends...

If you use custom settings:

  • "Always use private browsing mode" => if checked, cookies are stored only in memory for the duration of your session
  • "Clear history when Firefox closes" => if checked, cookies may be removed depending on what is selected in the "Settings" dialog to the right of this option (this option does NOT honor exceptions)

Add-ons

Several add-ons directly edit/remove cookies. You can view, disable, and often remove unwanted or unknown extensions on the Add-ons page. Either:

  • Ctrl+Shift+a (Mac: Command+Shift+a)
  • "3-bar" menu button (or Tools menu) > Add-ons
  • type or paste about:addons in the address bar and press Enter/Return

In the left column of the Add-ons page, click Extensions. On the right side, find the "Manage Your Extensions" heading.

If there is at least one extension before the next heading -- "Recommended Extensions" -- please continue:

Then cast a critical eye over the list below that heading. Any extensions Firefox installs for built-in features are hidden from this page, so everything listed here is your choice (and your responsibility) to manage. Anything possibly related to cookies here?

Cleaners

Programs like CCleaner and Advanced System Care may remove browser data at system startup or even between Firefox sessions without a startup.

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

newmarket2 zei

Since forever, when I close a FF tab or window, I remain logged into sites (except when I log out myself) Recently (?the latest update?), I'm logged out of every site every time. Very time consuming! Is there a solution? Michael

Logged into or logged onto sites maybe not you are not logged out or logged off at all Let me know if it keeps happening, it may just be a temporarerly problem

more options

選擇的解決方法

Hi Michael, sites recognize you as having logged in when your browser sends back the cookie they set back at the time of login. If the cookie is gone, you're a nobody to them and you need to log in again.

There are quite a few possible reasons to lose cookies between sessions. These include Firefox privacy settings, add-ons, and external cleaners. Let's check:

Options page > Privacy & Security panel

(1) Cookies and Site Data section

The checkbox here for "Delete cookies and site data when Firefox is closed" determines whether cookies are set to expire automatically at the end of your Firefox session:

  • Unchecked => Firefox sets the expiration based on what the site requested
  • Checked => Firefox sets the expiration to "Session only" -- so cookies won't survive the shutdown/restart

The "Manage Permissions" dialog is where you would list sites that are an exception to your standard rule. For example, if you force all cookies to session but you want to stay logged in on certain sites, you could add those sites here with an "Allow" exception.

(2) History section

The main selector here has three options:

  • Firefox will: Remember history => cookies should not get cleared automatically
  • Firefox will: Never remember history => forces automatic private browsing, so cookies are stored only in memory for the duration of your session
  • Firefox will: Use custom settings for history => it depends...

If you use custom settings:

  • "Always use private browsing mode" => if checked, cookies are stored only in memory for the duration of your session
  • "Clear history when Firefox closes" => if checked, cookies may be removed depending on what is selected in the "Settings" dialog to the right of this option (this option does NOT honor exceptions)

Add-ons

Several add-ons directly edit/remove cookies. You can view, disable, and often remove unwanted or unknown extensions on the Add-ons page. Either:

  • Ctrl+Shift+a (Mac: Command+Shift+a)
  • "3-bar" menu button (or Tools menu) > Add-ons
  • type or paste about:addons in the address bar and press Enter/Return

In the left column of the Add-ons page, click Extensions. On the right side, find the "Manage Your Extensions" heading.

If there is at least one extension before the next heading -- "Recommended Extensions" -- please continue:

Then cast a critical eye over the list below that heading. Any extensions Firefox installs for built-in features are hidden from this page, so everything listed here is your choice (and your responsibility) to manage. Anything possibly related to cookies here?

Cleaners

Programs like CCleaner and Advanced System Care may remove browser data at system startup or even between Firefox sessions without a startup.

more options

jsher2000, Looks like "Delete cookies and site data...." got clicked (I didn't do it! At least not intentionally...) Haven't fully tested to make sure that's all it was, but for now I'll mark it SOLVED And, thank you!

more options

Note that you can create a cookie allow exception to keep important cookies if you use "Delete cookies and site data when Firefox is closed".


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
  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: "Manage Exceptions/Permissions"