I am trying to handle session object across page using HTML5 local storage and both Local Storage
and Session Storage
values are not persist on the other than home page. What will be the issue?
localStorage.setItem("users",JSON.stringify(userlist));
alert(localStorage.getItem("users"));
The users object values exist only on my home page and other page it return as {}
empty value.
Copyright Notice:Content Author:「user5970552」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/35586415/html5-session-storage-or-local-storage-only-returning-values-on-home-page-and-va