title: Odd Php Session Behavior
body: <p>I'm having some issues with session for some reason. I've never had issues with sessions, up until now. I have three pages:</p>
  
  <pre><code>/index.php
  /test/sessions.php
  /test/sessions2.php
  </code></pre>
  
  <p>All of which have the same code(/test/sessions.php also sets a session value):</p>
  
  <pre><code>&lt;?php
  if(!isset($_SESSION)){
      session_start();
  }
  var_dump($_SESSION);
  echo(session_id());
  ?&gt;
  </code></pre>
  
  <p>session.php(setting value):</p>
  
  <pre><code>&lt;?php
  session_start();
  $_SESSION['foo'] = 'bar';
  ?&gt;
  </code></pre>
  
  <p>The code works fine on the pages in the /test/ directory, but not on the index page. When I navigate to the index page it will clear all session data, but like I said, noting is wrong with the pages in the /text/ directory. Am I missing something?</p>