title: PHP Session variable not getting set
body: <p>In one page of our site, I have this code:</p>
  
  <pre><code>$_SESSION['returnURL'] = "/store/checkout/onepage";
  </code></pre>
  
  <p>and further down, this button control:</p>
  
  <pre><code>&lt;button type="button" title="Register Today" class="button" onclick="window.location = '/register/';" id="BecomeMember"&gt;&lt;span&gt;&lt;span&gt;Become a Member Today&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
  </code></pre>
  
  <p>Now, in the register template, I have this code:</p>
  
  <pre><code>&lt;input type="hidden" name="returnURL" id="returnURL" value="&lt;?php if(isset($_SESSION['returnURL'])) { echo $_SESSION['returnURL']; } else { echo '/'; } ?&gt;" /&gt;
  </code></pre>
  
  <p>But it only shows the value as /.</p>
  
  <p>What could be going on that is causing this?</p>