def is_timed_out(self):
if (self.is_expired):<EOL><INDENT>return True<EOL><DEDENT>try:<EOL><INDENT>if (not self.last_access_time):<EOL><INDENT>msg = ("<STR_LIT>" +<EOL>str(self.session_id) + "<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" +<EOL>self.__class__.__name__ +<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>raise ValueError(msg)<EOL><DEDENT>"""<STR_LIT>"""<EOL>if self.is_absolute_timed_out:<EOL><INDENT>return True<EOL><DEDENT>if self.is_idle_timed_out:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>msg2 = ("<STR_LIT>" +<EOL>str(self.session_id) + "<STR_LIT>"<EOL>"<STR_LIT>")<EOL>logger.debug(msg2)<EOL><DEDENT>return False<EOL>
determines whether a Session has been inactive/idle for too long a time
OR exceeds the absolute time that a Session may exist