KeywordsHtml5web storage Getting started to master
http://www.aliyun.com/zixun/aggregation/17326.html on Client "> Store data
HTML 5 provides two new ways to store data on the client side:
Localstorage-No time limit data storage
Sessionstorage-Data storage for a session
Before, these are all done by cookies. But cookies are not suitable for storing large amounts of data because they are passed by each request to the server, which makes cookies slow and inefficient.
In HTML 5, data is not delivered by each server request, but only when requested. It makes it possible to store large amounts of data without affecting the performance of the Web site.
For different sites, the data is stored in different areas, and a Web site can only access its own data.
HTML 5 uses JavaScript to store and access data.
Localstorage method
The data stored by the Localstorage method has no time limit. The data is still available the next day, the second week, or the following year.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.