HTML5 how the data stored using the local storage is saved locally

Source: Internet
Author: User
Tags sqlite database sqlite manager

How does HTML5 store data stored locally using the local storage? (I am using the Chrome browser, Chrom browser is using SQLite to save local data)

The local storage of HTML5 is the data stored locally through the browser.

The basic use method is as follows:

    1. <script type="Text/javascript">
    2. Localstorage.firstname = "Tom";
    3. alert (localstorage.firstname);
    4. </script>

In this way, the data is saved locally, but the local data is saved in what form, followed by the discovery that in the Chrome browser, the data is stored in SQLite's database file format.

Under Windows, is saved in C:\Documents and Settings\user name\local Settings\Application Data\google\chrome\user Data\default\ The Local Storage path (where user name refers to the current username);

Under Mac, is saved in/users/user name/library/application support/google/chrome/default/local storage path (where user name refers to the current username) Path under the

Although the suffix is. localstorege But in fact is SQLite database file, can be opened with SQLite, and see the data. (can be opened using Firefox's SQLite Manager add-On)

Install the component step and install Firebug similar, select the Menu tool--Accessories component, open the Attachment Component Settings page, search "SQLite Manager" keyword, install "SQLite Manager" plugin and restart Firefox, you can see in the tool " SQLite Manager Add-ons,

HTML5 how the data stored using the local storage is saved locally

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.