Friday, July 2, 2010

Apple's Useful Offline Storage Article

An interesting point from the article:
The localStorage and sessionStorage JavaScript objects are functionally identical except in their persistence and scope rules:

  • localStorage—used for long-term storage. This data persists after the window is closed and is shared across all browser windows.



  • sessionStorage—used for ephemeral data related to a single browser window. Data stored in the sessionStorage object does not persist after the window is closed and is not shared with other windows.

  • http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/Name-ValueStorage/Name-ValueStorage.html 


    A note on storing objects using local storage:
     
    http://stackoverflow.com/questions/2010892/storing-objects-in-html5-localstorage


    No comments:

    Post a Comment