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

搜尋 Mozilla 技術支援網站

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

了解更多

How do I force firefox delete all cookies and site data when I close it, without forbidding remembering them?

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

more options

Hello.

I want Firefox to delete all data, which means cookies and site data, when I close all Firefox's windows. But since I migrated to win10, I've been experiencing a trouble.

Back in my win7 environment, things were working as intended. I went to "about:preferences#privacy". Then on "Cookies and Site Data" section, I ticked "Delete cookies and site data when Firefox is closed." And on "History" section, I chose "Firefox will Use custom settings for history". And I ticked "Clear history when Firefox closes". Also I ticked all boxes on "Settings for Clearing History" window. All data seemed deleted when I closed Firefox back then.

But things were changed in a weird way. The settings on "History" section is working but I've noticed some leftovers. All cookies are gone and you're logged out, but I noticed that some sites STILL have some settings. A example is "tenki.jp", which is a weather forecast page. I opened a page of a location, and close Firefox, and start Firefox, and went to the top page, but it still remembers the location which I checked earlier. The setting on "Coolies and Site Data" section is worse. It works, but not in the intended way. I opened a page of a location on the weather forecast site, and went to the top page, it of-course remembered the location. But I opened the top page on ANOTHER TAB, it forgets the location. It seems like Firefox shares cookies and log-in information between tabs, but don't shares this sort of data when the setting is ticked.

I don't understand what is going on. All I know is that some sites uses "that sort of data", which is not cookies and site data apparently, to store site settings, and Firefox can't handle them well.

If you know a solution, please let me know.

I'm using 72.0.2 64bit on Windows 10 Pro 64bit Japanese.

Thanks.

Hello. I want Firefox to delete all data, which means cookies and site data, when I close all Firefox's windows. But since I migrated to win10, I've been experiencing a trouble. Back in my win7 environment, things were working as intended. I went to "about:preferences#privacy". Then on "Cookies and Site Data" section, I ticked "Delete cookies and site data when Firefox is closed." And on "History" section, I chose "Firefox will Use custom settings for history". And I ticked "Clear history when Firefox closes". Also I ticked all boxes on "Settings for Clearing History" window. All data seemed deleted when I closed Firefox back then. But things were changed in a weird way. The settings on "History" section is working but I've noticed some leftovers. All cookies are gone and you're logged out, but I noticed that some sites STILL have some settings. A example is "tenki.jp", which is a weather forecast page. I opened a page of a location, and close Firefox, and start Firefox, and went to the top page, but it still remembers the location which I checked earlier. The setting on "Coolies and Site Data" section is worse. It works, but not in the intended way. I opened a page of a location on the weather forecast site, and went to the top page, it of-course remembered the location. But I opened the top page on ANOTHER TAB, it forgets the location. It seems like Firefox shares cookies and log-in information between tabs, but don't shares this sort of data when the setting is ticked. I don't understand what is going on. All I know is that some sites uses "that sort of data", which is not cookies and site data apparently, to store site settings, and Firefox can't handle them well. If you know a solution, please let me know. I'm using 72.0.2 64bit on Windows 10 Pro 64bit Japanese. Thanks.

所有回覆 (6)

more options

I forgot to mention that I refreshed Firefox's profile after migration to win10. The problem persists.

Thanks.

more options

Hi Towa Shina, Most sites determine your location from your IP address.

In the "History" section, under "Firefox will Use custom settings for history" select *Always use private browsing mode.

You can take a look at this article Private Browsing - Use Firefox without saving history for more information.

more options

Data stored in permanent local storage (indexedDB) may not be removed when you use this privacy feature to remove personal data, so if that website uses local storage instead of cookies to store this data locally then that would explain your observation.

more options

Hello. Thanks for replies.

>Most sites determine your location from your IP address.

This isn't the case because the site remembers the location which I looked into, not where I am connecting.

>Always use private browsing mode.

I tried that and it didn't help me. Firefox shares log-in information between tabs, but not "that sort of data".

>Data stored in permanent local storage (indexedDB) may not be removed when you use this privacy feature to remove personal data,

That seems the case. But how can I let website use that, and delete them when I close Firefox?

I tried some options and I figured out that if you add a website on the "Exceptions - Cookies and Site Data" window to "Allow" or "Allow for Session", Firefox will share "that sort of data" between tabs, although they're not shown in the "Manage Cookies and Site Data" window. But that won't solve the problem either, because I can't add all existing sites on the exceptions obviously.

Thanks.

more options

Are you maybe seeing information being passed by Referer Headers ?

more options