title: Cookie not saving in safari when adding to home screen
body: <p>Hey i'm using the following code to set a cookie and get it :</p>
  
  <pre><code>  $.cookie('SimMobileUsername', $('#user_id').val());
  
    if($.cookie('SimMobileUsername') != "null" &amp;&amp; $.cookie('SimMobileUsername') != null); {
  
      $('#user_id').val($.cookie('SimMobileUsername'));
  
      }
  </code></pre>
  
  <p>Which works fine but when i add  the webpage to the home screen it dosen't save the cookie.</p>
  
  <p><strong>Important:</strong> </p>
  
  <p>I have read that safari caches home screen pages, so i tried the following code to refresh the page on 1 time on start but that didn't help either:</p>
  
  <pre><code> var url = window.location.href;
  if (url.indexOf('rnd=') == -1) {
      url = (url.indexOf("?") == -1 ? url + "?rnd=" : url + "&amp;rnd=") + Math.random();
      window.location.href = url;
  }
  </code></pre>
  
  <p>Any insights on the subject?</p>