title: Codeigniter iOS Web App Sessions not saving
body: <p>I have set my codeigniter website to be a web app using Apples documentation.
  <a href="https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html" rel="nofollow noreferrer">https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html</a></p>
  
  <p>It works well, but none of my sessions are saving when they switch between apps.</p>
  
  <pre><code>  $this-&gt;session-&gt;set_userdata('logged_in', true);
    $this-&gt;session-&gt;set_userdata('id', $data['id']);
    $this-&gt;session-&gt;set_userdata('role_id', $data['role_id']); 
  </code></pre>
  
  <p>I found a good article about this but don't know how this would look using codeigniter.
  <a href="https://stackoverflow.com/questions/16467664/maintaining-a-php-session-on-an-iphone-web-app">Maintaining a PHP session on an iPhone web app</a></p>