namespace Drupal\Core\Session

Same name in other branches
  1. 8.9.x Drupal\Core\Session
  2. 10 Drupal\Core\Session
  3. 11.x Drupal\Core\Session
Object name File name Summary
AccountEvents core/lib/Drupal/Core/Session/AccountEvents.php Defines events for the account system.
AccountInterface core/lib/Drupal/Core/Session/AccountInterface.php Defines an account interface which represents the current user.
AccountProxy core/lib/Drupal/Core/Session/AccountProxy.php A proxied implementation of AccountInterface.
AccountProxyInterface core/lib/Drupal/Core/Session/AccountProxyInterface.php Defines an interface for a service which has the current account stored.
AccountSetEvent core/lib/Drupal/Core/Session/AccountSetEvent.php Event fired when an account is set for the current session.
AccountSwitcher core/lib/Drupal/Core/Session/AccountSwitcher.php An implementation of AccountSwitcherInterface.
AccountSwitcherInterface core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Defines an interface for a service for safe account switching.
AnonymousUserSession core/lib/Drupal/Core/Session/AnonymousUserSession.php An account implementation representing an anonymous user.
MetadataBag core/lib/Drupal/Core/Session/MetadataBag.php Provides a container for application specific session metadata.
PermissionsHashGenerator core/lib/Drupal/Core/Session/PermissionsHashGenerator.php Generates and caches the permissions hash for a user.
PermissionsHashGeneratorInterface core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php Defines the user permissions hash generator interface.
SessionConfiguration core/lib/Drupal/Core/Session/SessionConfiguration.php Defines the default session configuration generator.
SessionConfigurationInterface core/lib/Drupal/Core/Session/SessionConfigurationInterface.php Defines an interface for session configuration generators.
SessionHandler core/lib/Drupal/Core/Session/SessionHandler.php Default session handler.
SessionManager core/lib/Drupal/Core/Session/SessionManager.php Manages user sessions.
SessionManagerInterface core/lib/Drupal/Core/Session/SessionManagerInterface.php Defines the session manager interface.
UserSession core/lib/Drupal/Core/Session/UserSession.php An implementation of the user account interface for the global user.
WriteSafeSessionHandler core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Wraps the session handler to prevent writes when not necessary or allowed.
WriteSafeSessionHandlerInterface core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php Provides an interface for session handlers where writing can be disabled.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.