title: PHP: SESSION lost on SUBDOMAIN
body: <p>I am trying to use session data on multiple subdomains:</p>
  
  <ul>
  <li>www.example.com</li>
  <li>my.example.com</li>
  <li>test.example.com</li>
  <li>whateversub.example.com</li>
  </ul>
  
  <p>When I try to use session data from www.example.com to any subdomain, all the session information is not accessible.</p>
  
  <ul>
  <li>I am NOT using cookies. Just sessions.</li>
  <li>I have GoDaddy as web host.</li>
  <li>GoDaddy DOES allow to upload a custom php5.ini file.</li>
  </ul>
  
  <p><strong>Since I am a PHP beginner, please dumb down your response so I may understand it.</strong></p>
  
  <p>Here is an example:</p>
  
  <p><strong>File 1:</strong></p>
  
  <pre><code>&lt;?php
  // FILE 1: www.example.com/index.php
  
  session_start();
  $_SESSION['status'] = "ON";
  header( 'Location: http://sub.mywebsite/' );
  ?&gt;
  </code></pre>
  
  <p><strong>File 2:</strong></p>
  
  <pre><code>&lt;?php
  // FILE 2: sub.example.com/index.php
  
  session_start();
  echo "Your session status is: ";
  echo $_SESSION['status'];
  ?&gt;
  </code></pre>