function SessionManager::setWriteSafeHandler

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::setWriteSafeHandler()
  2. 8.9.x core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::setWriteSafeHandler()
  3. 10 core/lib/Drupal/Core/Session/SessionManager.php \Drupal\Core\Session\SessionManager::setWriteSafeHandler()

Overrides SessionManagerInterface::setWriteSafeHandler

File

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

Class

SessionManager
Manages user sessions.

Namespace

Drupal\Core\Session

Code

public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler) {
    $this->writeSafeHandler = $handler;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.