Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$sessionStorage get undefined after refreshing the page but $localStorage not #263

Open
ansontp22 opened this issue Apr 26, 2017 · 1 comment

Comments

@ansontp22
Copy link

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

@MarkRihter
Copy link

@ansontp22 Faced the same problem. Still haven't found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants