class WriteSafeSessionHandler

Wraps another SessionHandlerInterface to prevent writes when not allowed.

Hierarchy

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 8

Namespace

Drupal\Core\Session

Members

Name Modifiers Type Description
WriteSafeSessionHandler::$sessionWritable protected property Whether or not the session is enabled for writing.
WriteSafeSessionHandler::$wrappedSessionHandler protected property
WriteSafeSessionHandler::close public function Closes the current session. Overrides SessionHandlerInterface::close
WriteSafeSessionHandler::destroy public function Destroys a session. Overrides SessionHandlerInterface::destroy
WriteSafeSessionHandler::gc public function Cleans up expired sessions (garbage collection). Overrides SessionHandlerInterface::gc
WriteSafeSessionHandler::isSessionWritable public function Returns whether or not a session may be written to storage. Overrides WriteSafeSessionHandlerInterface::isSessionWritable
WriteSafeSessionHandler::open public function Re-initializes existing session, or creates a new one. Overrides SessionHandlerInterface::open
WriteSafeSessionHandler::read public function Reads the session data. Overrides SessionHandlerInterface::read
WriteSafeSessionHandler::setSessionWritable public function Sets whether or not a session may be written to storage. Overrides WriteSafeSessionHandlerInterface::setSessionWritable
WriteSafeSessionHandler::write public function Writes the session data to the storage. Overrides SessionHandlerInterface::write
WriteSafeSessionHandler::__construct public function Constructs a new write safe session 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!WriteSafeSessionHandler.php/class/WriteSafeSessionHandler/8.1.x