title: How do you use session variables in wordpress?
body: <p>I have the following plugin: <a href="http://wordpress.org/support/plugin/wp-session-manager" rel="noreferrer">http://wordpress.org/support/plugin/wp-session-manager</a></p>
  
  <p>I cannot work out how to use the session variables in WordPress. From what I understand by reading, this is how it should be used: </p>
  
  <p>I have the following on page one (page 1):</p>
  
  <pre><code>global $wp_session;
  $wp_session['loggedIn'] = 15;
  
  echo $wp_session['loggedIn'];
  </code></pre>
  
  <p>On the first page, the session variable is working but on the second page, the session variable is not working.
  Can anyone suggest me where I am going wrong?</p>
  
  <p>Thanks.</p>