In addition to canvas, another very important function in HTML5 is the local storage of web storage on the client. Previously, user names and other information could be stored in cookies on the client side. Later, it was discovered that the following problems exist in Cookies storage: Size: The size of Cookies is Bandwidth is limited to about 4kb: Coolies are sent together with the HTTP service, so part of the bandwidth is wasted. Complexity: It is very difficult to operate Cookies correctly. In response to the above problems, HTML5 proposes a method of saving data locally: Web storage has two processing methods: session storage: save data in the session object. Session is the time that elapses from when a user opens the website to when he closes the website, that is, the time the user browses the website. The session object can save all data during this period. local storage: Save data on the client's hardware (hard drive) even if the user's browser is closed. The next time you open it, the session storage instance index.h will also be reloaded
1. Html5 Learning Journey-Html5 Web Storage Overview (16)
Introduction: In addition to canvas, another very important function in HTML5 is the local storage of web storage on the client side. Previously, it could be stored on the client side Cookies store user names and other information. Later, it was discovered that the following problems existed in Cookie storage:
[Related Q&A recommendations]:
The above is the detailed content of Storage overview introductory tutorial: 10 recommended zero-based introductory tutorials for storage overview. For more information, please follow other related articles on the PHP Chinese website!