Top "Local-storage" questions

LocalStorage is a way to store persistent data using JavaScript (see also: SessionStorage).

use localStorage across subdomains

I'm replacing cookies with localStorage on browsers that can support it (anyone but IE). The problem is site.com and …

javascript subdomain local-storage
How to save to local storage using Flutter?

In Android, if I have the information I want to persist across sessions I know I can use SharedPreferences or …

flutter local-storage
Looping through localStorage in HTML5 and JavaScript

So, I was thinking I could just loop through localStorage like a normal object as it has a length. How …

javascript html loops object local-storage
Is localStorage.getItem('item') better than localStorage.item or localStorage['item']?

I recently asked a question about LocalStorage. Using JSON.parse(localStorage.item) and JSON.parse(localStorage['item']) weren't working to …

javascript syntax local-storage
Is it safe to store a JWT in localStorage with ReactJS?

I'm currently building a single page application using ReactJS. I read that one of the reasons for not using localStorage …

reactjs local-storage jwt
Check if localStorage is available

I know there has been many questions about checking for localStorage but what if someone manually shuts it off in …

javascript error-handling local-storage
When is localStorage cleared?

How long can I expect data to be kept in localStorage. How long will an average user's localStorage data persist? …

html local-storage
Where to write to localStorage in a Redux app?

I want to persist some parts of my state tree to the localStorage. What is the appropriate place to do …

javascript redux local-storage state
How to mock localStorage in JavaScript unit tests?

Are there any libraries out there to mock localStorage? I've been using Sinon.JS for most of my other javascript …

javascript unit-testing mocking local-storage sinon
How to find the size of localStorage

I am currently developing a site that will make use of HTML5's localStorage. I've read all about the size …

javascript html local-storage