code: def is_timed_out(self):
          
          if (self.is_expired):
              return True
  
          try:
              if (not self.last_access_time):
                  msg = ("session.last_access_time for session with id [" +
                         str(self.session_id) + "] is null. This value must be"
                         "set at least once, preferably at least upon "
                         "instantiation. Please check the " +
                         self.__class__.__name__ +
                         " implementation and ensure self value will be set "
                         "(perhaps in the constructor?)")
                  raise ValueError(msg)
  
              """
               Calculate at what time a session would have been last accessed
               for it to be expired at this point.  In other words, subtract
               from the current time the amount of time that a session can
               be inactive before expiring.  If the session was last accessed
               before this time, it is expired.
              """
              if self.is_absolute_timed_out:
                  return True
  
              if self.is_idle_timed_out:
                  return True
  
          except AttributeError:
              msg2 = ("Timeouts not set for session with id [" +
                      str(self.session_id) + "]. Session is not considered "
                      "expired.")
              logger.debug(msg2)
  
          return False
docs: determines whether a Session has been inactive/idle for too long a time
          OR exceeds the absolute time that a Session may exist