public function WriteSafeSessionHandler::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php \Drupal\Core\Session\WriteSafeSessionHandler::__construct()
Constructs a new write safe session handler.
Parameters
\SessionHandlerInterface $wrapped_session_handler: The underlying session handler.
bool $session_writable: Whether or not the session should be initially writable.
File
- core/
lib/ Drupal/ Core/ Session/ WriteSafeSessionHandler.php, line 35 - Contains \Drupal\Core\Session\WriteSafeSessionHandler.
Class
- WriteSafeSessionHandler
- Wraps another SessionHandlerInterface to prevent writes when not allowed.
Namespace
Drupal\Core\SessionCode
public function __construct(\SessionHandlerInterface $wrapped_session_handler, $session_writable = TRUE) {
$this->wrappedSessionHandler = $wrapped_session_handler;
$this->sessionWritable = $session_writable;
}