I'm using $sessionStorage to store value in session and this is my line of code
$sessionStorage.STORE_ID = '23';
. but every time I refresh the page am getting undefined when i try to retrieve the value. am retrieving by using the following method
var id = $sessionStorage.STORE_ID;
I've tried with $localStorage. it is working fine. so what is the problem with $sessionStorage. Does it has any limitations? or Do I need to add any extra code to work with $sessionStorage. Otherwise I might modify everywhere by replace that with $localStorage.
I'm using $sessionStorage to store value in session and this is my line of code
$sessionStorage.STORE_ID = '23'; . but every time I refresh the page am getting undefined when i try to retrieve the value. am retrieving by using the following method var id = $sessionStorage.STORE_ID; I've tried with $localStorage. it is working fine. so what is the problem with $sessionStorage. Does it has any limitations? or Do I need to add any extra code to work with $sessionStorage. Otherwise I might modify everywhere by replace that with $localStorage.
Any help please
Regards Anson