Local storage and local database in HTML5

Source: Internet
Author: User

The Web Storage storage mechanism is an improvement to the cookie storage mechanism in HTML4, and because of the many drawbacks of the cookie mechanism, HTML5 no longer uses it and instead uses the improved Web Storage storage mechanism. The local database is a new feature in HTML5, which can be used to establish a database on the client, and the data that must be saved on the server can be saved locally on the client, which greatly reduces the burden on the server.
Html4cookie Existing problems:
Size: The size of the cookie is limited to 4KB;

Bandwidth: A cookie is sent along with an HTTP transaction, so it wastes a portion of the bandwidth used to send the cookie;

Complexity: It is difficult to manipulate cookies correctly.

One, the Web storage is divided into sessionstorage and localstorage two kinds.

1, Sessionstorag

Local storage and local database in HTML5

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.