You are here

public function WriteCheckSessionHandler::read in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Storage/Handler/WriteCheckSessionHandler.php \Symfony\Component\HttpFoundation\Session\Storage\Handler\WriteCheckSessionHandler::read()

File

vendor/symfony/http-foundation/Session/Storage/Handler/WriteCheckSessionHandler.php, line 71

Class

WriteCheckSessionHandler
Wraps another SessionHandlerInterface to only write the session when it has been modified.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function read($sessionId) {
  $session = $this->wrappedSessionHandler
    ->read($sessionId);
  $this->readSessions[$sessionId] = $session;
  return $session;
}