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
Post a Comment