AuthComponent::isLoggedIn PHP Method

isLoggedIn() public method

Is user is already logged in via session or cookie?
public isLoggedIn ( ) : boolean
return boolean
    public function isLoggedIn()
    {
        if (Session::getIsLoggedIn() === true) {
            return true;
        }
        if (Cookie::isCookieValid()) {
            return true;
        }
        return false;
    }