title: Unable to set PHP $_SESSION variables
body: <p>The Problem: Despite starting the session and declaring variables, the variables aren't actually set, and are not callable on other pages.</p>
  
  <p>Using the Web inspector, I can see that the PHPSESSID cookie is set, and is the same on the second page I tried to call the variables from. But there are no variables. </p>
  
  <p>The code:</p>
  
  <p>../test1.php</p>
  
  <pre><code>&lt;?php
  // Start the session
  session_start();
  $session_name = 'trialAndError';   // Set a custom session name
  
  // Set session variables
  $_SESSION["favcolor"] = "green";
  $_SESSION["favanimal"] = "cat";
  
  ?&gt;
  </code></pre>
  
  <p>Then I try to call the variable on this next page...and I get nothing...</p>
  
  <p>../test2.php</p>
  
  <pre><code>&lt;?php
  session_start();
  $session_name = 'trialAndError';   // Set a custom session name
  
  // Echo session variables that were set on previous page
  echo "Favorite color is " . $_SESSION["favcolor"] . "&lt;br&gt;";
  echo "Favorite animal is " . $_SESSION["favanimal"];
  ?&gt;
  </code></pre>
  
  <p>When I load ../test2.php the page displays:</p>
  
  <p>Favorite color is <br />
  Favorite animal is</p>
  
  <p>When I check the web inspector, I cannot see the session variables.</p>
  
  <p>Any suggestions?</p>