localStorage not saved when link takes me to another website
I am having problems with localStorage. Whenever a link takes me to another website and I use the back button to return to the jquery site, localStorage appears to have been cleared.
Do I have to explicitly tell jquery to store the localStorage variables as data for my website.
I am new to using localStorage and do not know what I am doing wrong to have my variables 'disappear' when using the back button to return from a another website.
How do I permanently store the local storage so that visiting another website does not remove it?
Thanks for any help.