title: $_SESSION['id'] doesn't seems to work
body: <p>I have php page that has jquery ajax call. the begging of this page for sure sets $_SESSION['id'] properly, here is the code:</p>
  
  <pre><code>&lt;?php
      session_start();
      if(!isset($_SESSION['id'])){
              header('Location: ../index.php');
      }
      else{
              $id = $_SESSION['id'];
      }
  ...?&gt;
  </code></pre>
  
  <p>the ajax call code:</p>
  
  <pre><code>   $.ajax({
           url: '../php/functions/user_unused_area_list.php',
           dataType: 'json'        
      }).always(userUnusedAreaList);
  
    function userUnusedAreaList(list, textStatus, error){
      if(textStatus === 'success'){
          alert(list);
      }
      else {
         alert('Failed: ' + error);
      }
  }
  </code></pre>
  
  <p>and here is the pho page which the ajax request calls:</p>
  
  <pre><code>if(isset($_SESSION['id'])){
      $id = $_SESSION['id'];
      echo 'good';
  }
  else{
      echo 'not good';
  }
  </code></pre>
  
  <p>I'm getting an alert with Feiled: SyntaxError: UnexpectedToken n. (I think it from "not good") 
  <strong>NOTE:</strong> there are other ajax calls and they look the same and they work fine, this one wasted many hours of my life.</p>
  
  <p>thanks!</p>