W3cubDocs

/Drupal 8

public function SessionManager::setWriteSafeHandler

public SessionManager::setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler)

Sets the write safe session handler.

@todo: This should be removed once all database queries are removed from the session manager class.

Overrides SessionManagerInterface::setWriteSafeHandler

File

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

Class

SessionManager
Manages user sessions.

Namespace

Drupal\Core\Session

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!SessionManager.php/function/SessionManager::setWriteSafeHandler/8.1.x