You are here

protected function SessionManager::isSessionObsolete in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::isSessionObsolete()

Determines whether the session contains user data.

Return value

bool TRUE when the session does not contain any values and therefore can be destroyed.

1 call to SessionManager::isSessionObsolete()
SessionManager::save in core/lib/Drupal/Core/Session/SessionManager.php
Force the session to be saved and closed.

File

core/lib/Drupal/Core/Session/SessionManager.php, line 297
Contains \Drupal\Core\Session\SessionManager.

Class

SessionManager
Manages user sessions.

Namespace

Drupal\Core\Session

Code

protected function isSessionObsolete() {
  $used_session_keys = array_filter($this
    ->getSessionDataMask());
  return empty($used_session_keys);
}