File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/Handler/PdoSessionHandler.php, line 81
Class
- PdoSessionHandler
- PdoSessionHandler.
Namespace
Symfony\Component\HttpFoundation\Session\Storage\Handler
Code
public function destroy($id) {
$dbTable = $this->dbOptions['db_table'];
$dbIdCol = $this->dbOptions['db_id_col'];
$sql = "DELETE FROM {$dbTable} WHERE {$dbIdCol} = :id";
try {
$stmt = $this->pdo
->prepare($sql);
$stmt
->bindParam(':id', $id, \PDO::PARAM_STR);
$stmt
->execute();
} catch (\PDOException $e) {
throw new \RuntimeException(sprintf('PDOException was thrown when trying to manipulate session data: %s', $e
->getMessage()), 0, $e);
}
return true;
}