public function WriteSafeSessionHandler::write in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php \Drupal\Core\Session\WriteSafeSessionHandler::write()
File
- core/
lib/ Drupal/ Core/ Session/ WriteSafeSessionHandler.php, line 78 - Contains \Drupal\Core\Session\WriteSafeSessionHandler.
Class
- WriteSafeSessionHandler
- Wraps another SessionHandlerInterface to prevent writes when not allowed.
Namespace
Drupal\Core\SessionCode
public function write($session_id, $session_data) {
if ($this
->isSessionWritable()) {
return $this->wrappedSessionHandler
->write($session_id, $session_data);
}
else {
return TRUE;
}
}