Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Storing Things Locally: Web Storage > Now that you know localStorage, how ar...

Now that you know localStorage, how are you going to use it?

There are many ways to make use of localStorage—the Stickies app used them so we didn’t need a server, but even with a server, localStorage can be quite helpful. Here’s a few other ways developers are using them:

image with no caption
image with no caption
image with no caption
image with no caption
image with no caption
image with no caption

Bullets Points

  • Web Storage is a store in your browser and an API you can use to save and retrieve items from the store.

  • Most browsers provide at least 5 megabytes of storage per origin.

  • Web Storage consists of local storage and session storage.

  • Local storage is persistent, even if you close your browser window or quit the browser.

  • Items in session storage are removed when you close your browser window or quit the browser. Session storage is good for temporary items, not longer term storage.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint