Pantheon\Terminus\Session\Session::isActive PHP Method

isActive() public method

Responds with the status of this session (i.e. whether the client is logged in)
public isActive ( ) : boolean
return boolean
    public function isActive()
    {
        return isset($this->data->session) && ($this->data->expires_at >= time() || (bool) $this->config->get('test_mode'));
    }