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

搜尋 Mozilla 技術支援網站

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

了解更多

How to delete history, cookies, and cache on OPEN

more options

I administer public access computers in a public library. We use Firefox as our primary browser, and I have configured it to clear cache, history, and cookies on exit to protect patron privacy.

Recently, I have experienced a few instances where this did not work. Upon confirming that there weren't any minimized windows open in the taskbar, I could re-open the browser and access the previous patron's email inbox. This should not happen because clearing the cookies should remove any active logins.

My hypothesis for why this happened is that the Firefox process did not terminate properly, preventing it from clearing the data.

My question is: Is there a way to tell Firefox to clear the data when it *OPENS* as well as closes? This would allow for the data to be wiped if Firefox crashes or does not shutdown properly.

I administer public access computers in a public library. We use Firefox as our primary browser, and I have configured it to clear cache, history, and cookies on exit to protect patron privacy. Recently, I have experienced a few instances where this did not work. Upon confirming that there weren't any minimized windows open in the taskbar, I could re-open the browser and access the previous patron's email inbox. This should not happen because clearing the cookies should remove any active logins. My hypothesis for why this happened is that the Firefox process did not terminate properly, preventing it from clearing the data. My question is: Is there a way to tell Firefox to clear the data when it *OPENS* as well as closes? This would allow for the data to be wiped if Firefox crashes or does not shutdown properly.

所有回覆 (2)

more options

Firefox should log the closing progress in sessionCheckpoints.json in the profile folder and if there are unfinished tasks detected on startup then these should be done. Firefox can store session data in sessionstore.jsonlz4 including cookies. To prevent storing cookies as part of session restore, you can set the browser.sessionstore.privacy_level pref to 2 on the about:config page.

You can open the about:config page via the location/address bar. You can accept the warning and click "I accept the risk!" to continue.

more options

cor-el said

To prevent storing cookies as part of session restore, you can set the browser.sessionstore.privacy_level pref to 2 on the about:config page.

Thanks, I'll try that.