• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

[Duplicate: locked] Looking into LocalStorage or sessionStorage for app

Contributor ,
Aug 31, 2015 Aug 31, 2015

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?

Views

800

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2015 Aug 31, 2015

Copy link to clipboard

Copied

In case you don't know about it, there is a brand new forum for questions such as this.

Coding Corner

Nancy O.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Aug 31, 2015 Aug 31, 2015

Copy link to clipboard

Copied

Thanks much Nancy O.

didn't know of this - so I moved it over there instead.

Looking into LocalStorage or sessionStorage for app

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 31, 2015 Aug 31, 2015

Copy link to clipboard

Copied

didn't know of this - so I moved it over there instead.

  Looking into LocalStorage or sessionStorage for app

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.

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 01, 2015 Sep 01, 2015

Copy link to clipboard

Copied

Moved this post to the appropriate forum.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 02, 2015 Sep 02, 2015

Copy link to clipboard

Copied

LATEST

I'm locking this thread because the same question had already been asked in Coding Corner: Looking into LocalStorage or sessionStorage for app

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines