title: PHP session variables and jQuery
body: <p>So, I've got a bit of an issue handling PHP session variables. I've got a jQuery function to post the variable to a PHP file (working, see code here):</p>
  
  <pre><code>   $('#practiceid').blur(function() {
      var practiceid = $(this).val();
      $.post("delicious.php", {"pid": practiceid});
     });
  </code></pre>
  
  <p>Thanks to Firebug I can see that delicious.php receives the variable. Now, the code in that PHP file is:</p>
  
  <pre><code>$_SESSION['uploaddir'] = $_POST['pid'];
  </code></pre>
  
  <p>The issue now is that when I try to use the session variable in other PHP files it just seems not to exist. I've declared the <code>session_start();</code> in the index.php file.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks so much.</p>