protected function SessionManager::isSessionObsolete in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::isSessionObsolete()
 - 9 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.
File
- core/
lib/ Drupal/ Core/ Session/ SessionManager.php, line 275  
Class
- SessionManager
 - Manages user sessions.
 
Namespace
Drupal\Core\SessionCode
protected function isSessionObsolete() {
  $used_session_keys = array_filter($this
    ->getSessionDataMask());
  return empty($used_session_keys);
}