'Check user session.'

def is_logged(self):

    try:
        body = self._uri_opener.GET(self.check_url, grep=False).body
        logged_in = (self.check_string in body)
        msg_yes = 'User    "%s"    is    currently    logged    into    the    application'
        msg_no = 'User    "%s"    is    NOT    logged    into    the    application'
        msg = (msg_yes if logged_in else msg_no)
        om.out.debug((msg % self.username))
        return logged_in
    except Exception:
        return False
