WriteSafeSessionHandlerInterface::isSessionWritable

public WriteSafeSessionHandlerInterface::isSessionWritable() Returns whether or not a session may be written to storage. Return value bool TRUE if the session the session is allowed to be written, FALSE otherwise. File core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php, line 29 Class WriteSafeSessionHandlerInterface Provides an interface for session handlers where writing can be disabled. Namespace Drupal\Core\Session Code public function isSessionWritable();

WriteSafeSessionHandlerInterface

Provides an interface for session handlers where writing can be disabled. Hierarchy interface \Drupal\Core\Session\WriteSafeSessionHandlerInterface File core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php, line 8 Namespace Drupal\Core\Session Members Name Modifiers Type Description WriteSafeSessionHandlerInterface::isSessionWritable public function Returns whether or not a session may be written to storage. WriteSafeSessionHandlerInterface::setSessionWrit

WriteSafeSessionHandler::__construct

public WriteSafeSessionHandler::__construct(\SessionHandlerInterface $wrapped_session_handler, $session_writable = TRUE) 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 30 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent wr

WriteSafeSessionHandler::write

public WriteSafeSessionHandler::write($session_id, $session_data) Writes the session data to the storage. Care, the session ID passed to write() can be different from the one previously received in read() when the session ID changed due to session_regenerate_id(). Parameters string $sessionId Session ID , see http://php.net/function.session-id: string $data Serialized session data to save: Return value bool true on success, false on failure Overrides SessionHandlerInterface::write See also h

WriteSafeSessionHandler::setSessionWritable

public WriteSafeSessionHandler::setSessionWritable($flag) Sets whether or not a session may be written to storage. It is not possible to enforce writing of the session data. This method is only capable of forcibly disabling that session data is written to storage. Parameters bool $flag: TRUE if the session the session is allowed to be written, FALSE otherwise. Overrides WriteSafeSessionHandlerInterface::setSessionWritable File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 85

WriteSafeSessionHandler::read

public WriteSafeSessionHandler::read($session_id) Reads the session data. Parameters string $sessionId Session ID, see http://php.net/function.session-id: Return value string Same session data as passed in write() or empty string when non-existent or on failure Overrides SessionHandlerInterface::read See also http://php.net/sessionhandlerinterface.read File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 66 Class WriteSafeSessionHandler Wraps another SessionHandlerInterfa

WriteSafeSessionHandler::open

public WriteSafeSessionHandler::open($save_path, $session_id) Re-initializes existing session, or creates a new one. Parameters string $savePath Save path: string $sessionName Session name, see http://php.net/function.session-name.php: Return value bool true on success, false on failure Overrides SessionHandlerInterface::open See also http://php.net/sessionhandlerinterface.open File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 59 Class WriteSafeSessionHandler Wraps ano

WriteSafeSessionHandler::isSessionWritable

public WriteSafeSessionHandler::isSessionWritable() Returns whether or not a session may be written to storage. Return value bool TRUE if the session the session is allowed to be written, FALSE otherwise. Overrides WriteSafeSessionHandlerInterface::isSessionWritable File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 92 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent writes when not allowed. Namespace Drupal\Core\Session Code public funct

WriteSafeSessionHandler::gc

public WriteSafeSessionHandler::gc($max_lifetime) Cleans up expired sessions (garbage collection). Parameters string|int $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed: Return value bool true on success, false on failure Overrides SessionHandlerInterface::gc See also http://php.net/sessionhandlerinterface.gc File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 52 Class WriteSafeSessionHandler Wraps another SessionHandlerInterf

WriteSafeSessionHandler::destroy

public WriteSafeSessionHandler::destroy($session_id) Destroys a session. Parameters string $sessionId Session ID, see http://php.net/function.session-id: Return value bool true on success, false on failure Overrides SessionHandlerInterface::destroy See also http://php.net/sessionhandlerinterface.destroy File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 45 Class WriteSafeSessionHandler Wraps another SessionHandlerInterface to prevent writes when not allowed. Namespace