hytham ALOBYDI
Posts: 0
Joined: Thu Sep 12, 2013 1:23 am

LocalStorage value is not populating

The Description: Hello, I am using the standard method to populate a local storage variable on Load Page. In the Events tab, i selected the "Set local storage variable" Action and referenced the appropriate local storage variable. I tested to see if anything is populating by placing a button and running this JS: alert(localStorage.getItem('userid_master')); - The value is empty. Is there something not working properly with the standard method of setting the local storage variable?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

LocalStorage value is not populating

Hello! Could you clarify what is userid_master? It's component name or localStorage name? Please note it's case sensitive.

hytham ALOBYDI
Posts: 0
Joined: Thu Sep 12, 2013 1:23 am

LocalStorage value is not populating

it is a localStorage name

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

LocalStorage value is not populating

Hi - please check in Developer tools (F12 -- if using Chrome) in Resources tab, have you actually set the local storage variable?

Return to “Issues”