title: Using sessions on Wordpress site
body: <p>I have a client page using PHP which then goes to a Wordpress page. The session on the client page is remembered, but when I load a new page from Wordpress, the session is empty. Why does Wordpress not store my session data like my client page does? </p>
  
  <p>This code is on the login page:</p>
  
  <pre><code>my_session_register('user_id');
  $_SESSION['user_id']=$user_id;
  header('Location: booking_user.php');
  </code></pre>
  
  <p>This code checks the session in Wordpress:</p>
  
  <pre><code>if (!my_session_is_registered('user_id')) {
      header('Location: login.php');
  }
  </code></pre>
  
  <p>I just don't know how to persist the session to Wordpress.</p>