SessionManager::isSessionObsolete

protected 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.

File

core/lib/Drupal/Core/Session/SessionManager.php, line 293

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);
}
doc_Drupal
2016-10-29 09:42:05
Comments
Leave a Comment

Please login to continue.