function SessionManager::setWriteSafeHandler

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

Overrides SessionManagerInterface::setWriteSafeHandler

File

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

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.