title: Sharing SESSION Variables Between Multiple Subdomains
body: <p>I have a website www.example.com. That will have multiple subdomains that work with a single application or program. For an example, login.example.com will allow the user to log in to the site while system.example.com will allow the user to access an information system, while forums.example.com will allow the user to access forums. </p>
  
  <p>We may need to pass information between the subdomains such as a user id, or a user preference, etc. How do we go about passing information between the sudomains using SESSION variables?</p>
  
  <p>EDIT:
  I like this idea:</p>
  
  <p>As the first thing in your script:</p>
  
  <pre><code>ini_set('session.cookie_domain', '.example.com' ); 
  </code></pre>