You are here

public function PdoSessionHandler::read in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Session/Storage/Handler/PdoSessionHandler.php, line 275

Class

PdoSessionHandler
Session handler using a PDO connection to read and write data.

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function read($sessionId) {
  try {
    return $this
      ->doRead($sessionId);
  } catch (\PDOException $e) {
    $this
      ->rollback();
    throw $e;
  }
}