You are here

service session_manager in Drupal 10

Same name and namespace in other branches
  1. 8 core/core.services.yml \session_manager
  2. 9 core/core.services.yml \session_manager

Class

Drupal\Core\Session\SessionManager

Tags

  • backend_overridable
3 string references to session_manager
SessionManagerDestroyNoCliCheckTest::testCallSessionManagerStartAndDestroy in core/tests/Drupal/KernelTests/Core/Session/SessionManagerDestroyNoCliCheckTest.php
Tests starting and destroying a session from the CLI.
User::postSave in core/modules/user/src/Entity/User.php
user_logout in core/modules/user/user.module
Logs the current user out.

File

core/core.services.yml
core/core.services.yml

View source
  1. class: Drupal\Core\Session\SessionManager
  2. arguments:
  3. - '@request_stack'
  4. - '@database'
  5. - '@session_manager.metadata_bag'
  6. - '@session_configuration'
  7. - '@session_handler'
  8. tags:
  9. - { name: backend_overridable }
  10. calls:
  11. - [setWriteSafeHandler, ['@session_handler.write_safe']]