Fixing return value of CakeSession::__startSession(). Once headers were sent any further session objects would think that the session was not successfully started. Fixes issues in Helper group test. Also fixes #568

This commit is contained in:
Mark Story 2010-04-11 11:41:10 -04:00
parent 540157bbfd
commit 42bc252460

View file

@ -583,7 +583,7 @@ class CakeSession extends Object {
if (empty($_SESSION)) {
$_SESSION = array();
}
return false;
return true;
} elseif (!isset($_SESSION)) {
session_cache_limiter ("must-revalidate");
session_start();