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.
doc_Drupal
2016-10-29 09:56:48
Comments
Leave a Comment

Please login to continue.