src/PhpCas.php
public function checkAuthentication()
    {
        if (self::isAuthenticated()) {
            return true;
        } elseif (self::isGatewayed()) {
            return $this->validateCas();
        }
        self::setGatewayed(true);
        session_write_close();
        $this->redirectToCas(true);
        // never reached
        return true;
    }
public function checkAuthentication()
    {
        if (self::isAuthenticated()) {
            return true;
        } elseif (self::isGatewayed()) {
            return $this->validateCas();
        }
        self::setGatewayed(true);
        session_write_close();
        $this->redirectToCas(true);
        // never reached
        return true;
    }
public function checkAuthentication ( ) { if ( self :: isAuthenticated ( ) ) { return true ; } elseif ( self :: isGatewayed ( ) ) { return $ this -> validateCas ( ) ; } self :: setGatewayed ( true ) ; session_write_close ( ) ; $ this -> redirectToCas ( true ) ; // never reached return true ; }
If not gatewayed, redirect to CAS with gateway=true.

@return bool true - authenticated. false - guess mode.
If not gatewayed redirect to CAS with gateway = true .