Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

How do I stop FF from deleting my local storage when I close a tab (not in private window)?

  • 2 valiny
  • 1 manana an'ity olana ity
  • 12 views
  • Valiny farany nomen'i cor-el

more options

I have a web page that saves some data into local storage (localStorage.setItem). When I either close the tab or close the browser, the data is removed. When I use Chrome, the data is still there.

Is this normal behavior for FireFox? How can I have the data persist? Do I need to configure FireFox differently?

Thanks, -JT

I have a web page that saves some data into local storage (localStorage.setItem). When I either close the tab or close the browser, the data is removed. When I use Chrome, the data is still there. Is this normal behavior for FireFox? How can I have the data persist? Do I need to configure FireFox differently? Thanks, -JT

All Replies (2)

more options

Try setting your settings to not clear cookies/local storage in the options menu.

more options

This is possibly done by one of your extensions.

Start Firefox in Safe Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration is is causing the problem.

  • switch to the DEFAULT theme: "3-bar" menu button or Tools -> Add-ons -> Appearance
  • do NOT click the "Refresh Firefox" button on the Safe Mode start window