We would like to develop a system (javascript) to run on a local browser. We would like to make use of local storage however in testing this out we see that when running the app from a server local storage works fine but when running the app locally it fails to retain the data between sessions.

Is this an intended function?