Search for session

  1. Search 7.x for session
  2. Search 9.5.x for session
  3. Search 8.9.x for session
  4. Search 10.3.x for session
  5. Search 11.x for session
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
session service core/core.services.yml Symfony\Component\HttpFoundation\Session\Session
Session class core/lib/Drupal/Core/StackMiddleware/Session.php Wrap session logic around a HTTP request.

All search results

Title Object type File name Summary
UserSession::getTimeZone function core/lib/Drupal/Core/Session/UserSession.php Returns the timezone of this account.
UserSession::hasPermission function core/lib/Drupal/Core/Session/UserSession.php Checks whether a user has a certain permission.
UserSession::hasRole function core/lib/Drupal/Core/Session/UserSession.php Whether a user has a certain role.
UserSession::id function core/lib/Drupal/Core/Session/UserSession.php Returns the user ID or 0 for anonymous.
UserSession::isAnonymous function core/lib/Drupal/Core/Session/UserSession.php Returns TRUE if the account is anonymous.
UserSession::isAuthenticated function core/lib/Drupal/Core/Session/UserSession.php Returns TRUE if the account is authenticated.
UserSession::__construct function core/lib/Drupal/Core/Session/UserSession.php Constructs a new user session.
UserSessionRepository class core/lib/Drupal/Core/Session/UserSessionRepository.php Provides the default user session repository.
UserSessionRepository.php file core/lib/Drupal/Core/Session/UserSessionRepository.php
UserSessionRepository::deleteAll function core/lib/Drupal/Core/Session/UserSessionRepository.php
UserSessionRepository::__construct function core/lib/Drupal/Core/Session/UserSessionRepository.php
UserSessionRepositoryInterface interface core/lib/Drupal/Core/Session/UserSessionRepositoryInterface.php Provides an interface for the user session repository.
UserSessionRepositoryInterface.php file core/lib/Drupal/Core/Session/UserSessionRepositoryInterface.php
UserSessionRepositoryInterface::deleteAll function core/lib/Drupal/Core/Session/UserSessionRepositoryInterface.php Delete all session records of the given user.
UserSessionTest class core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests Drupal\Core\Session\UserSession.
UserSessionTest.php file core/tests/Drupal/Tests/Core/Session/UserSessionTest.php
UserSessionTest::createUserSession function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Setups a user session for the test.
UserSessionTest::testGetLastAccessedTime function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests that ::getLastAccessedTime() returns an integer.
UserSessionTest::testHasPermission function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the has permission method.
UserSessionTest::testHasRole function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the hasRole method.
UserSessionTest::testUserGetRoles function core/tests/Drupal/Tests/Core/Session/UserSessionTest.php Tests the method getRoles exclude or include locked roles based in param.
UserTest::createUserSession function core/modules/user/tests/src/Unit/Plugin/Core/Entity/UserTest.php
WebAssertTest::$session property core/tests/Drupal/Tests/Core/Test/WebAssertTest.php Session mock.
WebAssertTest::assertSession function core/tests/Drupal/Tests/Core/Test/WebAssertTest.php Get the mocked session.
WebDriverTestBase::assertSession function core/tests/Drupal/FunctionalJavascriptTests/WebDriverTestBase.php Returns WebAssert object.
workspaces.negotiator.session service core/modules/workspaces/workspaces.services.yml Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator
WriteSafeSessionHandler class core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Wraps the session handler to prevent writes when not necessary or allowed.
WriteSafeSessionHandler.php file core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php
WriteSafeSessionHandler::$readSessions property core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php The read sessions.
WriteSafeSessionHandler::$sessionWritable property core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Whether or not the session is enabled for writing.
WriteSafeSessionHandler::isSessionWritable function core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Returns whether or not a session may be written to storage.
WriteSafeSessionHandler::read function core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php
WriteSafeSessionHandler::setSessionWritable function core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Sets whether or not a session may be written to storage.
WriteSafeSessionHandler::write function core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php
WriteSafeSessionHandler::__construct function core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php Constructs a new write safe session handler.
WriteSafeSessionHandlerInterface interface core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php Provides an interface for session handlers where writing can be disabled.
WriteSafeSessionHandlerInterface.php file core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php
WriteSafeSessionHandlerInterface::isSessionWritable function core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php Returns whether or not a session may be written to storage.
WriteSafeSessionHandlerInterface::setSessionWritable function core/lib/Drupal/Core/Session/WriteSafeSessionHandlerInterface.php Sets whether or not a session may be written to storage.
WriteSafeSessionHandlerTest class core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Tests \Drupal\Core\Session\WriteSafeSessionHandler.
WriteSafeSessionHandlerTest.php file core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php
WriteSafeSessionHandlerTest::$sessionHandler property core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php The write safe session handler.
WriteSafeSessionHandlerTest::$wrappedSessionHandler property core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php The wrapped session handler.
WriteSafeSessionHandlerTest::providerTestOtherMethods function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Provides test data for the other methods test.
WriteSafeSessionHandlerTest::setUp function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php
WriteSafeSessionHandlerTest::setUpMockWrappedSessionHandler function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Reinitializes the wrapped session handler as a mock object.
WriteSafeSessionHandlerTest::testConstructWriteSafeSessionHandlerDefaultArgs function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Tests creating a WriteSafeSessionHandler with default arguments.
WriteSafeSessionHandlerTest::testConstructWriteSafeSessionHandlerDisableWriting function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Tests creating a WriteSafeSessionHandler with session writing disabled.
WriteSafeSessionHandlerTest::testOtherMethods function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Tests that other invocations are passed unmodified to the wrapped handler.
WriteSafeSessionHandlerTest::testSetSessionWritable function core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php Tests using setSessionWritable to enable/disable session writing.

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