def is_authenticated(self):
return (<EOL>self.active<EOL>and self.auth_handler is not None<EOL>and self.auth_handler.is_authenticated()<EOL>)<EOL>
Return true if this session is active and authenticated.

:return:
    True if the session is still open and has been authenticated
    successfully; False if authentication failed and/or the session is
    closed.