W3cubDocs

/Drupal 8

class SessionHandler

Default session handler.

Hierarchy

File

core/lib/Drupal/Core/Session/SessionHandler.php, line 15

Namespace

Drupal\Core\Session

Members

Name Modifiers Type Description
AbstractProxy::$active protected property
AbstractProxy::$saveHandlerName protected property
AbstractProxy::$wrapper protected property Flag if handler wraps an internal PHP session handler (using \SessionHandler).
AbstractProxy::getId public function Gets the session ID.
AbstractProxy::getName public function Gets the session name.
AbstractProxy::getSaveHandlerName public function Gets the session.save_handler name.
AbstractProxy::isActive public function Has a session started?
AbstractProxy::isSessionHandlerInterface public function Is this proxy handler and instance of \SessionHandlerInterface.
AbstractProxy::isWrapper public function Returns true if this handler wraps an internal PHP session save handler using \SessionHandler.
AbstractProxy::setActive public function Sets the active flag.
AbstractProxy::setId public function Sets the session ID.
AbstractProxy::setName public function Sets the session name.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function
DependencySerializationTrait::__wakeup public function
SessionHandler::$connection protected property The database connection.
SessionHandler::$requestStack protected property The request stack.
SessionHandler::close public function Closes the current session. Overrides SessionHandlerInterface::close
SessionHandler::destroy public function Destroys a session. Overrides SessionHandlerInterface::destroy
SessionHandler::gc public function Cleans up expired sessions (garbage collection). Overrides SessionHandlerInterface::gc
SessionHandler::open public function Re-initializes existing session, or creates a new one. Overrides SessionHandlerInterface::open
SessionHandler::read public function Reads the session data. Overrides SessionHandlerInterface::read
SessionHandler::write public function Writes the session data to the storage. Overrides SessionHandlerInterface::write
SessionHandler::__construct public function Constructs a new SessionHandler instance.

© 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!SessionHandler.php/class/SessionHandler/8.1.x