src/Client.php
/**
     * Checks whether login's cookie still effective or not.
     */
Checks whether login's cookie still effective or not.
Checks whether login ' s cookie still effective or not .
public function loginValidate():bool {
        $client = $this->guzzleClient;
        $resp = $client->request('GET', self::$cas_login);
        $match = [];
        preg_match_all(self::SUCPATTERN, $resp->getBody(), $match);
        if(count($match[0])> 0)
            return true;
        return false;
    }
public function loginValidate ( ) : bool { $ client = $ this -> guzzleClient ; $ resp = $ client -> request ( 'GET' , self :: $ cas_login ) ; $ match = [ ] ; preg_match_all ( self :: SUCPATTERN , $ resp -> getBody ( ) , $ match ) ; if ( count ( $ match [ 0 ] ) > 0 ) return true ; return false ; }
Checks whether login's cookie still effective or not.
Checks whether login ' s cookie still effective or not .
// make session, save it to query