diff --git a/core/lib/Drupal/Core/Session/SessionManager.php b/core/lib/Drupal/Core/Session/SessionManager.php index 02df3aa..ea6ba6e 100644 --- a/core/lib/Drupal/Core/Session/SessionManager.php +++ b/core/lib/Drupal/Core/Session/SessionManager.php @@ -129,7 +129,7 @@ public function start() { // session is only started on demand in save(), making // anonymous users not use a session cookie unless something is stored in // $_SESSION. This allows HTTP proxies to cache anonymous pageviews. - $result = $this->startReal(); + $result = $this->startNow(); if ($user->isAuthenticated() || !$this->isSessionObsolete()) { drupal_page_is_cacheable(FALSE); } @@ -171,7 +171,7 @@ public function start() { /** * Forcibly start a PHP session. */ - protected function startReal() { + protected function startNow() { if (!$this->isEnabled() || $this->isCli()) { return; } @@ -213,7 +213,7 @@ public function save() { // There is session data to store. Start the session if it is not already // started. if (!$this->getSaveHandler()->isActive()) { - $this->startReal(); + $this->startNow(); if ($this->requestStack->getCurrentRequest()->isSecure() && $this->isMixedMode()) { $insecure_session_name = $this->getInsecureName(); $params = session_get_cookie_params(); @@ -292,7 +292,7 @@ public function regenerate($destroy = FALSE, $lifetime = NULL) { // Preserve the logged in user, as it will be reset to anonymous // by \Drupal\Core\Session\SessionHandler::read(). $account = $user; - $this->startReal(); + $this->startNow(); $user = $account; } date_default_timezone_set(drupal_get_user_timezone());