title: Session not saving when moving from ssl to non-ssl
body: <p>I have a login screen that I force to be ssl, so like this:
  <a href="https://www.foobar.com/login" rel="noreferrer">https://www.foobar.com/login</a>
  then after they login, they get moved to the homepage:
  <a href="https://www.foobar.com/dashbaord" rel="noreferrer">https://www.foobar.com/dashbaord</a></p>
  
  <p>However, I want to move people off of SSL once logged in (to save CPU), so just after checking that they are in fact logged in on <a href="https://www.foobar.com/dashbaord" rel="noreferrer">https://www.foobar.com/dashbaord</a> I move them to 
  <a href="http://www.foobar.com/dashbaord" rel="noreferrer">http://www.foobar.com/dashbaord</a></p>
  
  <p>Well this always seems to wipe out the session variables, because when the page runs again, it confirms they are logged in (as all pages do) and session appears not to exist, so it moves them to the login screen.</p>
  
  <p>Oddness/findings:</p>
  
  <ol>
  <li>List item</li>
  <li>The second login always works, and happily gets me to <a href="http://www.foobar.com/dashbaord" rel="noreferrer">http://www.foobar.com/dashbaord</a></li>
  <li>It successfully creates a cookie the first login</li>
  <li>If I login twice, then logout, and login again, I don't need two logins (I seem to have traced this to the fact that the cookie exists). If I delete the cookie, I'm back to two logins.</li>
  <li>After the second login, I can move from non-ssl from ssl and the session persists.</li>
  <li>On the first login, the move to the non-ssl site wipes out the session entirely, manually moving back to the ssl site still forces me to login again.</li>
  <li>The second login using the exact same mechanism as the first, over ssl</li>
  </ol>
  
  <p>What I tried:</p>
  
  <ol>
  <li>Playing with Cake's settings for security.level and session.checkagent - nothing</li>
  <li>Having cake store the sessions in db (as opposed to file system) - nothing</li>
  <li>Testing in FF, IE, Chrome on an XP machine.</li>
  </ol>
  
  <p>So I feel like this is something related to the cookie being created but not being read. </p>
  
  <p>Environment:
  1. Debian
  2. Apache 2
  3. Mysql 4
  4. PHP 5
  5. CakePHP
  6. Sessions are being saved PHP default, as files</p>