Looking into LocalStorage or sessionStorage for app
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?
