public function checkAuth() {
        if (isset($_SESSION[$this->_sessionVarName]) &&
            $_SESSION[$this->_sessionVarName] == 1
        ) {
            return true;
        } else {
            return false;
        }
    }
public function checkAuth() {
        if (isset($_SESSION[$this->_sessionVarName]) &&
            $_SESSION[$this->_sessionVarName] == 1
        ) {
            return true;
        } else {
            return false;
        }
    }
public function checkAuth ( ) { if ( isset ( $ _SESSION [ $ this -> _sessionVarName ] ) && $ _SESSION [ $ this -> _sessionVarName ] == 1 ) { return true ; } else { return false ; } }
Checks if a client is logged-in

@return bool
Checks if a client is logged - in