title: PHP Sessions and mobile devices
body: <p>I'm having some problems with PHP sessions and mobile devices, in this case an iPad (1st gen) and an Nokia Lumia 720. I have some test site (<code>http://localhost:8888/php-test/</code>) with this code: </p>
  
  <pre><code>&lt;?php
  
  session_start();
  
  if (isset($_SESSION['language'])) {
      echo '$_SESSION["language"] was set to: ' . $_SESSION['language'];
  } else {
      echo '$_SESSION["language"] was NOT set.';
  }
  
  $_SESSION['language'] = 'en';
  </code></pre>
  
  <p>In the PC (macbook) everything works fine, but when I try to access to this test site from any of the devices (using <code>http://192.168.0.30:8888/php-test/</code> it does not work!</p>
  
  <p>The first time I enter the site, the else part runs. If I refresh the page, the if part runs. But when I close the browser and enter again, the else part appears again..</p>
  
  <p>Any help will be helpful.</p>
  
  <p>Thanks</p>