Copy link to clipboard
Copied
Hi all,
some newbie questions...
I'm looking into localStorage or sessionStorage for app.
- basically I will be getting data from an outside database and want to store it locally for a time and also updating it.
I think for my purposes it might be best to just store the data temporarily - similar to a session var - and possible dump the data after the app closes - and then reload all when they login each time.
So would it be best to use localStorage or sessionStorage for this purpose?
In my localStorage test the data remained persistent even after I quit and reloaded the app - which is nice but better for me to be able to delete it when I want?
Are there functions that can wipe out just some key value pairs?
Are there functions that can delete all local storage?
Also is localStorage / sessionStorage sandboxed with an IOS or android app or is it available outside the app also?
Copy link to clipboard
Copied
In case you don't know about it, there is a brand new forum for questions such as this.
Nancy O.
Copy link to clipboard
Copied
Thanks much Nancy O.
didn't know of this - so I moved it over there instead.
Copy link to clipboard
Copied
didn't know of this - so I moved it over there instead.
The new Code Corner just launched a few hours ago. It's hasn't garnered much activity yet because it's brand new. But I'm hoping people will use it more & more for their code questions.
Nancy O.
Copy link to clipboard
Copied
Moved this post to the appropriate forum.
Copy link to clipboard
Copied
I'm locking this thread because the same question had already been asked in Coding Corner: Looking into LocalStorage or sessionStorage for app