title: Phonegap iOS 5.1 and localStorage
body: <p>I was using localstorage for save one value in my App, that works with PhoneGap, but when Apple has released the new iOS 5.1, my App now doesn't save the value.</p>
  
  <p>Does anybody know how to solve this problem?</p>
  
  <p>Thank you very much!!! </p>
  
  <p>Edit: I put the code I was using:</p>
  
  <p><code>window.localStorage.setItem("login", $('#login').val());</code> </p>
  
  <p>I use it for save the value, and I use it for read the value:</p>
  
  <pre><code>function onDeviceReady() {
      var login = window.localStorage.getItem("login");
  
      if (login != null) {
          $('#login').val(login);
      }
  }
  </code></pre>
  
  <p>But when I close the App, the values are not saved.</p>