protected function deleteExistingSessions($uid)
    {
        $query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['uid' => $uid]);

        return $query_prepared->rowCount() > 0;
    }
protected function deleteExistingSessions($uid)
    {
        $query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid";
        $query_prepared = $this->dbh->prepare($query);
        $query_prepared->execute(['uid' => $uid]);

        return $query_prepared->rowCount() > 0;
    }
protected function deleteExistingSessions ( $ uid ) { $ query = "DELETE FROM {$this->config->table_sessions} WHERE uid = :uid" ; $ query_prepared = $ this -> dbh -> prepare ( $ query ) ; $ query_prepared -> execute ( [ 'uid' => $ uid ] ) ; return $ query_prepared -> rowCount ( ) > 0 ; }
Removes all existing sessions for a given UID
@param int $uid
@return boolean
Removes all existing sessions for a given UID