With web storage, web applications can store data locally within the user's browser.
Before HTML5, application data had to be stored in cookies, included in every server request. Web storage is more secure, and large amounts of data can be stored locally, without affecting website performance.
Unlike cookies, the storage limit is far larger (at least 5MB) and the information is never transferred to the server.
Web storage is per origin (per domain and protocol). All pages, from one origin, can store and access the same data.
随着网络存储,Web应用程序可以在用户的浏览器本地存储数据。
HTML5之前,应用程序数据必须存储在cookie中,包含在每一个服务器的请求。网络存储更安全,以及大量的数据可以在本地存储,而不会影响网站的性能。
不像饼干,存储限制是大得多的(至少5MB)和所述信息不会传送到服务器。
web存储是每原点(每个域和协议)。所有页面,从一个起源,可以存储和访问相同的数据。