Page 1 of 1

LocalStorage value is not populating

Posted: Wed Sep 18, 2013 4:07 pm
by hytham ALOBYDI

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?


LocalStorage value is not populating

Posted: Wed Sep 18, 2013 4:31 pm
by Maryna Brodina

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


LocalStorage value is not populating

Posted: Thu Sep 19, 2013 1:08 am
by hytham ALOBYDI

it is a localStorage name


LocalStorage value is not populating

Posted: Thu Sep 19, 2013 1:57 am
by Illya Stepanov

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