Skip to content

Commit

Permalink
Minor refactor for CakeSession.
Browse files Browse the repository at this point in the history
  • Loading branch information
predominant authored and markstory committed Jul 28, 2010
1 parent 9bddd9a commit 632d1f1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cake/libs/cake_session.php
Expand Up @@ -539,23 +539,21 @@ function __initSession() {
/**
* Helper method to start a session
*
* @access private
* @return boolean Success
*/
function __startSession() {
protected function _startSession() {
if (headers_sent()) {
if (empty($_SESSION)) {
$_SESSION = array();
}
return true;
} elseif (!isset($_SESSION)) {
session_cache_limiter ("must-revalidate");
session_start();
header ('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
return true;
} else {
session_start();
return true;
}
return true;
}

/**
Expand Down

0 comments on commit 632d1f1

Please sign in to comment.