搜尋 Mozilla 技術支援網站

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

Learn More

If I "allow for session" a cookie with an expiration date in the distant future, does that cookie function only if I go to that particular website again?

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

more options

On some sites where I need to allow cookies to use the site, some of the cookies have expiration dates in 2020 or 2030 or whatever. If I allow these cookies "for session" only, do they become nonfunctional when I close Firefox and remain nonfunctional until I access that site again, even if I open Firefox again, or are they constantly active whenever Firefox is running (or whenever my computer is connected to the Internet)?

On some sites where I need to allow cookies to use the site, some of the cookies have expiration dates in 2020 or 2030 or whatever. If I allow these cookies "for session" only, do they become nonfunctional when I close Firefox and remain nonfunctional until I access that site again, even if I open Firefox again, or are they constantly active whenever Firefox is running (or whenever my computer is connected to the Internet)?

所有回覆 (1)

more options

Session cookies expire automatically when you close Firefox. You should be able to check that in the cookie manager on the next start and before you have visited those websites in that session.

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

  • Firefox > Preferences > 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 > Preferences > Privacy > "Use custom settings for history" > Cookies: Exceptions

In case you are using "Clear history when Firefox closes":

  • do not clear the Cookies
  • do not clear the Site Preferences

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