mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Minor refactor for CakeSession.
This commit is contained in:
parent
9bddd9a861
commit
632d1f13ae
1 changed files with 3 additions and 5 deletions
|
@ -539,23 +539,21 @@ class CakeSession {
|
|||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue