搜尋 Mozilla 技術支援網站

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

了解更多

Why is localstorage clearing itself when I close firefox?

  • 2 回覆
  • 1 有這個問題
  • 46 次檢視
  • 最近回覆由 paulonfs

more options

I'm doing some testing with localStorage on a local domain. Every time I close firefox, localstorage for the site is cleared. The domain I'm using takes the form http://example.dev. What is causing this and how do I prevent this from happening?

Many thanks paulonfs

I'm doing some testing with localStorage on a local domain. Every time I close firefox, localstorage for the site is cleared. The domain I'm using takes the form http://example.dev. What is causing this and how do I prevent this from happening? Many thanks paulonfs

被選擇的解決方法

Found the solution. It's related to cookie settings. Must allow cookies until they expire, not just for session.

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

所有回覆 (2)

more options

Attached screenshot of my privacy settings.

more options

選擇的解決方法

Found the solution. It's related to cookie settings. Must allow cookies until they expire, not just for session.