title: unable to store values in local storage
body: <p>I use the following code for storing values that I get from a php file which connects to a database and returns a json object. I can display these objects using the alert function, so I know the response is present. However, when i check local storage it is empty in the DOM for firebug.</p>
  
  <pre><code>$.getJSON("sessionstore.php", {id: $( "#customer option:selected" ).text()}, function(data){
          $.each(data,function(index,item) 
          {
            localStorage.setItem('username', item.EmpName);
            localStorage.setItem('usermail', item.EmpMail);
            localStorage.setItem('repsupervisor', item.RepSupervisor);
            localStorage.setItem('supmail', item.SupMail);
            localStorage.setItem('issup', item.IsSupervisor);
          });    
          });
  
              window.open("formselect.html","_self");
  </code></pre>
  
  <p>I am not sure if it is due to opening a new window.</p>
  
  <p>Regards</p>