title: Transfer Session Data Between Apache Virtual Hosts
body: <p>How do I pass PHP session data from one Apache virtual host to another? I am currently running Apache 2.2.17 and PHP 5.3.3 and I've set up one host to manage a single sign-on application and I need to pass this to two other virtual hosts that are running separate applications. This is something I intend to develop further, but for now passing session data would be the easiest.</p>
  
  <p>Currently this code creates the first session in the SSO subdomain auth.domain.com and then passes the user back to the application interface app.domain.com (has been trimmed):</p>
  
  <pre><code>  $user = new User;
    $user-&gt;set_user_session();
    Header("Location: $redirectURL");
    exit;
  </code></pre>
  
  <p>The server is entirely managed privately so multi-user security isn't a worry. However, if anyone sees any security issues beyond that please let me know. If you know of a better methodology please share and I will research it further. I appreciate the help.</p>