How does HTML Local Storage behave when used on a PC without any kind of server? -


i'm writing simple javascript app ideally can run directly user's hard drive, , need store 20kb locally. how data stored persist, say, when user moves location of files? (html , javascript files etc). count different origin, make previous data unaccessible until files moved back? how can script identify itself? there best practice this? or need have local server?

every file:// path considered different domain. if move location of html/js files, end new localstorage container. can't access same localstorage 2 different files in same place; e.g. "file1.html" , "file2.html" access different localstorage instances, if in same directory , loading same js file.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -