title: Why can't I access session variables from my AJAX-called PHP script?
body: <p>I have one PHP script with a session variable, set like so:</p>
  
  <pre><code>$_SESSION['VAR1'] = "test"
  </code></pre>
  
  <p>Now, I am using AJAX via a jQuery-initiated POST request, and so I have a script named <code>ajax.php</code> which has all the required functions.</p>
  
  <p>And when I try access my session variable (<code>echo $_SESSION['VAR1']</code>) in ajax.php, it produces nothing.</p>
  
  <p>Does session does not work from AJAX requests?</p>