Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
962 views
in Technique[技术] by (71.8m points)

local storage - Where the sessionStorage and localStorage stored?

Where are sessionStorage and localStorage stored on the client's computer?
Could you tell me the path?

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Firefox

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

Firefox (Windows XP):

C:Documents and Settings<Windows login/user name>Application DataMozillaFirefoxProfiles<profile folder>webappsstore.sqlite

Firefox (Windows Vista and above):

C:Users<Windows login/user name>AppDataRoamingMozillaFirefoxProfiles<profile folder>webappsstore.sqlite

or:

%APPDATA%MozillaFirefoxProfiles<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%GoogleChromeUser DataDefaultLocal 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%AppDataLocalLowMicrosoftInternet ExplorerDOMStorage

Opera

As said by OammieR:

C:UsersAdministratorAppDataRoamingOperaOperasessionsautosave.win

or as said by Kevin Hakanson:

C:UsersAdministratorAppDataLocalOperaOperapstorage

Sources


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...