You are here

public function NativeSessionStorage::getId in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php \Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage::getId()

Returns the session ID.

Return value

string The session ID or empty.

Overrides SessionStorageInterface::getId

2 calls to NativeSessionStorage::getId()
SessionManager::migrateStoredSession in core/lib/Drupal/Core/Session/SessionManager.php
Migrates the current session to a new session id.
SessionManager::regenerate in core/lib/Drupal/Core/Session/SessionManager.php
Regenerates id that represents this storage.

File

vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php, line 164

Class

NativeSessionStorage
This provides a base class for session attribute storage.

Namespace

Symfony\Component\HttpFoundation\Session\Storage

Code

public function getId() {
  return $this->saveHandler
    ->getId();
}