How to Store Data in The Browser Using Web Storage API

Written by mozilla | Published 2020/04/17
Tech Story Tags: web-storage | web-storage-api | cookies | mdn-documentation | session-management | hackernoon-top-story | local-storage | store-data-in-the-browser

TLDR Mozilla's Web Storage API provides mechanisms by which browsers can store key/value pairs in a much more intuitive fashion than using cookies. From Firefox 45 onwards, when the browser crashes/restarts, the amount of data saved per origin is limited to 10MB. This has been done to avoid memory issues caused by excessive usage of web storage. Most modern browsers have opted for a strategy where storage APIs are still available and seemingly fully functional, with the one big difference that all stored data is wiped after the browser is closed.via the TL;DR App

no story

Written by mozilla | Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.
Published by HackerNoon on 2020/04/17