Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SessionManager.php

function 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 264

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal