public function gc($maxlifetime)
    {
        $this->pdo->queryWithParam(
            'DELETE FROM session WHERE last_update < DATE_SUB(NOW(), INTERVAL :maxlifetime SECOND)',
            [[':maxlifetime', $maxlifetime, \PDO::PARAM_INT]]
        );

        return $this->pdo->getLastOperationStatus();
    }
public function gc($maxlifetime)
    {
        $this->pdo->queryWithParam(
            'DELETE FROM session WHERE last_update < DATE_SUB(NOW(), INTERVAL :maxlifetime SECOND)',
            [[':maxlifetime', $maxlifetime, \PDO::PARAM_INT]]
        );

        return $this->pdo->getLastOperationStatus();
    }
public function gc ( $ maxlifetime ) { $ this -> pdo -> queryWithParam ( 'DELETE FROM session WHERE last_update < DATE_SUB(NOW(), INTERVAL :maxlifetime SECOND)' , [ [ ':maxlifetime' , $ maxlifetime , \ PDO :: PARAM_INT ] ] ) ; return $ this -> pdo -> getLastOperationStatus ( ) ; }
Delete old sessions from storage.

http://php.net/manual/en/sessionhandler.gc.php.

@param int $maxlifetime

@return bool
Delete old sessions from storage .