How Is HTML5 Webstorage Data Physically Stored

How is HTML5 WebStorage data physically stored?

Chrome uses SQLite for LocalStorage.

I confirmed this by going to AppData\Local\Google\Chrome\User Data\Default\Local Storage on my local PC and viewing the contents of a file. The files start with "SQLite format 3" when viewed via a text editor. You will need a SQLite database viewer to view the data.

Browsers Storage - physical Location?

From a quick couple of searches on Google:

For Chrome:

http://www.techskater.com/web-stuff/accessing-google-chrome-extension-local-storage-database/

For Firefox:

https://developer.mozilla.org/en/DOM/Storage#Storage_location_and_clearing_the_data

IE:

Where in the filesystem does IE8 store values stored in localStorage?

Where the sessionStorage and localStorage stored?

Firefox

Firefox stores localstorage in webappsstore.sqlite file in the profile folder.

Firefox (Windows XP):

C:\Documents and Settings\<Windows login/user name>\Application Data\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite

Firefox (Windows Vista and above):

C:\Users\<Windows login/user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite

or:

%APPDATA%\Mozilla\Firefox\Profiles\<profile folder>\webappsstore.sqlite

Firefox on linux:

~/.mozilla/firefox/<profile folder>/webappsstore.sqlite

Firefox on mac:

~/Library/Application Support/Firefox/Profiles/<profile folder>/webappsstore.sqlite

or:

~/Library/Mozilla/Firefox/Profiles/<profile folder>/webappsstore.sqlite

Chrome

Chrome stores in separate files inside the Local Storage directory.

Chrome on windows:

%LocalAppData%\Google\Chrome\User Data\Default\Local Storage\

Chrome on linux:

~/.config/google-chrome/Default/Local Storage/

Chrome on mac:

~/Library/Application Support/Google/Chrome/<Profile>/Local Storage/

commonly:

~/Library/Application Support/Google/Chrome/Default/Local Storage/

Internet explorer:

I am a bit unsure, but think this will do the trick

%userprofile%\AppData\LocalLow\Microsoft\Internet Explorer\DOMStorage

Opera

As said by OammieR:

C:\Users\Administrator\AppData\Roaming\Opera\Opera\sessions\autosave.win

or as said by Kevin Hakanson:

C:\Users\Administrator\AppData\Local\Opera\Opera\pstorage\

Sources

  • Where does Firefox store javascript/HTML localStorage?

  • https://superuser.com/questions/507536/where-does-google-chrome-save-localstorage-from-extensions

  • http://www.chromium.org/user-experience/user-data-directory

  • My own computer ubuntu 14.10 with Firefox and Chrome

How to view javascript HTML5 localstorage?

For example in Google Chrome:

1) open console.

2) go to the Application

3) open storage -> local storage

4) you should see a table with keys and values

Sample Image

If you asking about "when it is stored on computer disc" it depends from browser and system:

How is HTML5 WebStorage data physically stored?

Where does PERSISTENT file system storage store with chrome?

Where in the filesystem does IE8 store values stored in localStorage?

Client-side data storing,DOM storage or HTML5 Local Storage?

DOM Storage or Web Storage is the collective name given to the following types of client storage options available in HTML5. It includes:

  • localStorage
  • sessionStorage

Local storage is persistent meaning the stored data will still be there when you close and re-open the browser window.

Session storage is temporary and is available as long as the page session lasts.

There is really no comparison between the two since technically they both are the same.



Related Topics



Leave a reply



Submit