SessionManager::getSessionDataMask

protected SessionManager::getSessionDataMask() Returns a map specifying which session key is containing user data. Return value array An array where keys correspond to the session keys and the values are booleans specifying whether the corresponding session key contains any user data. File core/lib/Drupal/Core/Session/SessionManager.php, line 306 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected function getSessionDataMask() { if (empty($_SESSI

SessionManager::destroy

public SessionManager::destroy() Destroys the current session and removes session cookies. Overrides SessionManagerInterface::destroy File core/lib/Drupal/Core/Session/SessionManager.php, line 254 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code public function destroy() { session_destroy(); // Unset the session cookies. $session_name = $this->getName(); $cookies = $this->requestStack->getCurrentRequest()->cookies; // setcookie() can

SessionManager::delete

public SessionManager::delete($uid) Ends a specific user's session(s). Parameters int $uid: User ID. Overrides SessionManagerInterface::delete File core/lib/Drupal/Core/Session/SessionManager.php, line 241 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code public function delete($uid) { // Nothing to do if we are not allowed to change the session. if (!$this->writeSafeHandler->isSessionWritable() || $this->isCli()) { return; } $this->

SessionManager::$writeSafeHandler

The write safe session handler. @todo: This reference should be removed once all database queries are removed from the session manager class. Type: \Drupal\Core\Session\WriteSafeSessionHandlerInterface File core/lib/Drupal/Core/Session/SessionManager.php, line 68 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $writeSafeHandler;

SessionManager::$startedLazy

Whether a lazy session has been started. Type: bool File core/lib/Drupal/Core/Session/SessionManager.php, line 58 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $startedLazy;

SessionManager::$sessionConfiguration

The session configuration. Type: \Drupal\Core\Session\SessionConfigurationInterface File core/lib/Drupal/Core/Session/SessionManager.php, line 51 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $sessionConfiguration;

SessionManager::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Session/SessionManager.php, line 37 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $requestStack;

SessionManager::$connection

The database connection to use. Type: \Drupal\Core\Database\Connection File core/lib/Drupal/Core/Session/SessionManager.php, line 44 Class SessionManager Manages user sessions. Namespace Drupal\Core\Session Code protected $connection;

SessionManager

Manages user sessions. This class implements the custom session management code inherited from Drupal 7 on top of the corresponding Symfony component. Regrettably the name NativeSessionStorage is not quite accurate. In fact the responsibility for storing and retrieving session data has been extracted from it in Symfony 2.1 but the class name was not changed. @todo In fact the NativeSessionStorage class already implements all of the functionality required by a typical Symfony application. Normal

SessionHandler::__construct

public SessionHandler::__construct(RequestStack $request_stack, Connection $connection) Constructs a new SessionHandler instance. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Database\Connection $connection: The database connection. File core/lib/Drupal/Core/Session/SessionHandler.php, line 41 Class SessionHandler Default session handler. Namespace Drupal\Core\Session Code public function __construct(RequestStack $request_st