ASP.NET and HTML5 Local Storage
With HTML 5, web pages can store data locally within the user's browser. Earlier, this was done with cookies. However, Web Storage is more secure and faster. The data is not included with every server request, but used only when asked for. It is also possible to store large amounts of data, with affecting the website's performance. The data is stored in Key/Value pairs, and a web page can only access data stored by itself. HTML5 storage support is designed for two key scenarios. First, it enables a site to work offline. A second feature of HTML5 storage is the ability to provide a local cache for data generally on the server but not subject to frequent change. There are two new objects for storing data on the client: localStorage - stores data with no expiration date sessionStorage - stores data for one session LocalStorage is designed as a long-term storage mechanism for data that spans sessions and time, and provides a mechanism for longer-term storage o...