title: jQuery AJAX and PHP session issue
body: <p>Really hope this makes sense and someone can  point me in right direction. On a registration page (parent page), when you enter a license code a jQuery ajax success function loads content from another page with an appended url to include a session id:</p>
  
  <pre><code>success: function(data) {
      if (data=="RegisterError") {
          $("#error").show();
          $("#processing").hide();
      } else {
          $("#contain").load("download-software.php?sessionid=xXXX #req");
          }
      }
  </code></pre>
  
  <p>The page "download-software" has the following PHP referrer check to make sure the content is being requested from the registration page via the session ID and redirects you if it's not:</p>
  
  <pre><code>&lt;?php
  $code = $_GET['sessionid'];
  if(strcmp( $code , 'xXXX'  ) != 0) {
      header("Location: http://www.someotherpage.com");
  }
  ?&gt;
  </code></pre>
  
  <p>That works fine. Now what I need to do is in the "download-software #req" content that is loaded into the parent page, have a link that when clicked replaces the "download-software #req" content which has been loaded inside the parent page with content from another page and do the same type of session id check.</p>
  
  <p>I cannot get it to work. I place the following code on the "download-software #req" content for the 
  <code>&lt;a id="beta"</code>>beta notes 
  $("#beta").click(function() {
                $("#req").load("NT7-SP1-Download.php #betaNotes");
            });`</p>
  
  <p>I've also tried using the .live function. How do I start a new session and make this work?
  <strong>*</strong><em>answer</em><strong>**</strong>
  I used the live function on the parent page and it works fine. Making it too hard i guess.</p>