Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. WriteSafeSessionHandler.php

function WriteSafeSessionHandler::read

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 74

Class

WriteSafeSessionHandler
Wraps the session handler to prevent writes when not necessary or allowed.

Namespace

Drupal\Core\Session

Code

public function read($session_id) : string|false {
    $value = $this->wrappedSessionHandler
        ->read($session_id);
    $this->readSessions[$session_id] = $value;
    return $value;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal