X
點擊此處開啟此網站的行動版。

技術支援討論區

Hello, How to keep only certain cookies and delete all other history/browsing content when Firefox is closed? Thanks

已張貼

I cannot figure out how to keep only certain chosen cookies and delete all others, plus delete the cache and all history upon closing Firefox. Can this be done without using an add-on? Thanks

I cannot figure out how to keep only certain chosen cookies and delete all others, plus delete the cache and all history upon closing Firefox. Can this be done without using an add-on? Thanks
引用

額外的系統細節

已安裝的外掛程式

  • Shockwave Flash 32.0 r0

OpenH264 Video Codec

應用程式

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

更多資訊

cor-el
  • Top 10 Contributor
  • Moderator
17530 個解決方法 158511 個答案

有幫助的回覆

Let the cookies expire when Firefox is closed to make them session cookies instead of using "Clear history when Firefox closes" to clear the cookies.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data: [ ] "Delete cookies and site data when Firefox is closed"

You can create an allow exception to keep specific cookies.

  • Options/Preferences -> Privacy & Security
    Cookies and Site Data -> Manage Permissions

If you use "Clear history when Firefox closes" to clear the cookies then all cookies are removed including cookies with an allow exception. You can still use "Clear history when Firefox closes" to clear the cache.

Note that you lose pinned tabs if you select to clear the browsing history.

Let the cookies expire when Firefox is closed to make them session cookies instead of using "Clear history when Firefox closes" to clear the cookies. *Options/Preferences -> Privacy & Security<br>Cookies and Site Data: [ ] "Delete cookies and site data when Firefox is closed" You can create an allow exception to keep specific cookies. *Options/Preferences -> Privacy & Security<br>Cookies and Site Data -> Manage Permissions If you use "Clear history when Firefox closes" to clear the cookies then all cookies are removed including cookies with an allow exception. You can still use "Clear history when Firefox closes" to clear the cache. *https://support.mozilla.org/en-US/kb/delete-browsing-search-download-history-firefox Note that you lose pinned tabs if you select to clear the browsing history.
這篇文章有幫助嗎? 1
引用

提出問題者

Thanks for the reply cor-el. After a restart some cookies that haven't been given allow exceptions are still there, is that the expected behaviour? My intention is to have all cookies, except the ones I specify, be auto deleted each time Firefox is closed. Do I need an add-on for this? Thanks

Thanks for the reply cor-el. After a restart some cookies that haven't been given allow exceptions are still there, is that the expected behaviour? My intention is to have all cookies, except the ones I specify, be auto deleted each time Firefox is closed. Do I need an add-on for this? Thanks
這篇文章有幫助嗎?
引用
cor-el
  • Top 10 Contributor
  • Moderator
17530 個解決方法 158511 個答案

If you keep tabs open when you close Firefox then its cookies are retained in sessionstore.jsonlz4 as part of the session data if that is what you use.

If you keep tabs open when you close Firefox then its cookies are retained in sessionstore.jsonlz4 as part of the session data if that is what you use.
這篇文章有幫助嗎?
引用

提出問題者

Interesting...I nearly always close the tabs before closing FF and definately did close them first when experimenting before posting earlier. I do have 'browser.tabs.closeWindowWithLastTab' set to false, not sure if that makes a difference or not. I'm on version 69.0.1 (64-bit) on MX-Linux & I don't see a sessionstore file anywhere in my profile folder. There is a sessionstore-backup folder that contains 2 files named recovery, one has a jsonlz4 extension.

Interesting...I nearly always close the tabs before closing FF and definately did close them first when experimenting before posting earlier. I do have 'browser.tabs.closeWindowWithLastTab' set to false, not sure if that makes a difference or not. I'm on version 69.0.1 (64-bit) on MX-Linux & I don't see a sessionstore file anywhere in my profile folder. There is a sessionstore-backup folder that contains 2 files named recovery, one has a jsonlz4 extension.
這篇文章有幫助嗎?
引用

提出問題者

Couldn't get it to work correctly so decided not to waste anymore time on it & installed the Cookie Quick Manager add-on. It does the job ok.

Couldn't get it to work correctly so decided not to waste anymore time on it & installed the Cookie Quick Manager add-on. It does the job ok.
這篇文章有幫助嗎?
引用
問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題