localStorage/sesionStorage and redirects .... HELP !
Maybe I'm being stupid and missing the obvious but why can't I do ...
sessionStorage.iVal = $resMsg.text();
In both instances, the browser wipes out the contents of the session/local storage upon reaching the new page ?
localStorage.iVal = $resMsg.text();