/** * Cleanup old sessions * @link http://php.net/manual/en/sessionhandlerinterface.gc.php * @param int $maxlifetime <p> * Sessions that have not updated for * the last maxlifetime seconds will be removed. * </p> * @return bool <p> * The return value (usually TRUE on success, FALSE on failure). * Note this value is returned internally to PHP for processing. * </p> * @since 5.4.0 */ public function gc($maxlifetime) { return $this->database->query(sprintf('TRUNCATE %s', $this->table)) ? true : false; }