From 632d1f13aeb68b89228b022e6b1356f4ef2bcf34 Mon Sep 17 00:00:00 2001 From: predominant Date: Wed, 7 Jul 2010 17:56:23 +1000 Subject: [PATCH] Minor refactor for CakeSession. --- cake/libs/cake_session.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cake/libs/cake_session.php b/cake/libs/cake_session.php index f51fecd36..e6d5aac4a 100644 --- a/cake/libs/cake_session.php +++ b/cake/libs/cake_session.php @@ -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; } /**