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

搜尋 Mozilla 技術支援網站

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

了解更多

How to clear some cookies in Firefox?

more options

It is possible to clear all the cookies from a website in Firefox: https://support.mozilla.org/en-US/kb/clear-cookies-and-site-data-firefox In my case, I would like to clear only authentication cookies (to be automatically disconnected when I close Firefox) but I want to keep the other cookies about my preferences. However, I can select on which websites I want to clear my cookies but I can't select which ones.

Is there a way to select the list of cookies I want to keep/clear for each websites?

Thanks.

It is possible to clear all the cookies from a website in Firefox: https://support.mozilla.org/en-US/kb/clear-cookies-and-site-data-firefox In my case, I would like to clear only authentication cookies (to be automatically disconnected when I close Firefox) but I want to keep the other cookies about my preferences. However, I can select on which websites I want to clear my cookies but I can't select which ones. Is there a way to select the list of cookies I want to keep/clear for each websites? Thanks.

被選擇的解決方法

Over the years, there have been some add-on to preserve certain important cookies and restore them after they are deleted. I don't know whether something like that might help:

https://addons.mozilla.org/firefox/addon/cookie-quick-manager/

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

所有回覆 (11)

more options

Your ‘logged-in’ status is stored in special cookies. If the cookie is removed, you are logged out.


Type about:preferences#privacy<enter> in the address bar. The button next to History, select Use Custom Settings.

Turn off Always Use Private Browsing Mode Turn on Remember My Browsing And Download History At the bottom of the page, turn on Clear History When Firefox Closes. At the far right, press the Settings button. Turn on Cache and Form And Search History and whatever else you want.

more options

Thanks for your reply. Unfortunately, I'm not disconnected to the websites I visited when I close Firefox. I tried to turn on Active logins but it doesn't work.

more options

I don't understand what you want.

pico051 said

I would like to clear only authentication cookies (to be automatically disconnected when I close Firefox) but I want to keep the other cookies about my preferences.
more options

There is a panel where you can see each individual website cookie for a site. It is available while you are viewing the site in a tab. See: https://developer.mozilla.org/docs/Tools/Storage_Inspector

more options

I would like to close all my open connections to any websites but keep all the other preferences stored in the cookies when I quit Firefox.

more options

jscher2000 said

There is a panel where you can see each individual website cookie for a site. It is available while you are viewing the site in a tab. See: https://developer.mozilla.org/docs/Tools/Storage_Inspector

Thanks. I know about the Storage Inspector but how can I select which cookies I want to keep or discard when I quit Firefox?

more options

pico051 said

jscher2000 said

There is a panel where you can see each individual website cookie for a site. It is available while you are viewing the site in a tab. See: https://developer.mozilla.org/docs/Tools/Storage_Inspector
Thanks. I know about the Storage Inspector but how can I select which cookies I want to keep or discard when I quit Firefox?

There is no built-in option for that, the features are per site and not per cookie. Perhaps there is an add-on that can do it.

more options

If what you want is to be logged off of all websites then the browser is closed, follow the instructions I posted: https://support.mozilla.org/en-US/questions/1304601#answer-1350147 and include login data.

more options

FredMcD said

If what you want is to be logged off of all websites then the browser is closed, follow the instructions I posted: https://support.mozilla.org/en-US/questions/1304601#answer-1350147 and include login data.

This feature doesn't seem to work. Even if I select "Active logins", I'm not disconnected when I quit Firefox.

more options

pico051 said

FredMcD said

If what you want is to be logged off of all websites then the browser is closed, follow the instructions I posted: https://support.mozilla.org/en-US/questions/1304601#answer-1350147 and include login data.

This feature doesn't seem to work. Even if I select "Active logins", I'm not disconnected when I quit Firefox.

"Active Logins" refers to pop-up style authentication used by some older sites. It does not do anything to cookies.

more options

選擇的解決方法

Over the years, there have been some add-on to preserve certain important cookies and restore them after they are deleted. I don't know whether something like that might help:

https://addons.mozilla.org/firefox/addon/cookie-quick-manager/