You are here

public function PdoSessionHandler::gc in Zircon Profile 8.0

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

File

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

Class

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

Namespace

Symfony\Component\HttpFoundation\Session\Storage\Handler

Code

public function gc($maxlifetime) {

  // We delay gc() to close() so that it is executed outside the transactional and blocking read-write process.
  // This way, pruning expired sessions does not block them from being started while the current session is used.
  $this->gcCalled = true;
  return true;
}