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

搜尋 Mozilla 技術支援網站

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

了解更多

Is it possible to Clear data but keep cookies?

  • 3 回覆
  • 0 有這個問題
  • 24 次檢視
  • 最近回覆由 cor-el

more options

Hi

I want to clear data but the only option FF is offering is with cookies. I want to delete all but cookies.

Image: https://imgur.com/jwLXxFx

Here it only says Cookies AND Site Data. But I want Site Data without Cookies. Can I somehow manually delete those files? Or manually selectively empty some tables in SQLite databases that FF uses? If yes then what files/databases exactly?

Hi I want to clear data but the only option FF is offering is with cookies. I want to delete all but cookies. Image: https://imgur.com/jwLXxFx Here it only says Cookies AND Site Data. But I want Site Data without Cookies. Can I somehow manually delete those files? Or manually selectively empty some tables in SQLite databases that FF uses? If yes then what files/databases exactly?

所有回覆 (3)

more options

You can use "Clear Recent History" to specify what data to clear.

  • using "Clear history when Firefox closes" in Firefox 102+ honors exceptions and keeps cookies with an allow exception, previous versions removed all cookies
  • clearing "Site settings" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data

Cookies are stored in cookies.sqlite in the Firefox profile folder, so you can possibly keep a backup if you find cookies important.

more options

Thanks!

In clear recent history, what is the difference between Cookies and Active Logins? Aren't logins also just cookies?

more options

There are two ways to authenticate to make a website recognize that you have logged in. One is to store a session ID in a cookie which is send with every request to the server. This is normally used when you login to a website. Another way to authenticate is via Basic HTTP Authentication and this is what Active Logins are about, this is used by FTP servers and other servers use this method to authenticate.

So both are different and shouldn't be confused.


Detail like websites remembering you and log you in automatically is stored in cookies, so make sure you aren't clearing important cookies.

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" to clear cookies keeps cookies with an allow exception
    in 102+ version toggling this setting makes changes to the "Clear history when Firefox closes" settings and those settings prevail
  • using "Clear history when Firefox closes" in Firefox 102+ honors exceptions and keeps cookies with an allow exception, previous versions removed all cookies

Make sure to keep the "Site settings".

  • clearing "Site settings" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • Settings -> Privacy & Security
    Cookies and Site Data: "Manage Exceptions"
  • Settings -> Privacy & Security
    Firefox will: "Use custom settings for history":
    [X] "Clear history when Firefox closes" -> Settings