code: def validate_session(self, session_ts):
          '''
          检查Session是否过期, 验证Session可用性
          '''
          now = time()
          ts = session_ts / 1000;
          if ts > ( now + 60 * 10 ) or now > ( ts + 60 * 30 ):
              return False
          return Truf validate_session(self, session_ts):
          '''
          检查Session是否过期, 验证Session可用性
          '''
          now = time()
          ts = session_ts / 1000;
          if ts > ( now + 60 * 10 ) or now > ( ts + 60 * 30 ):
              return False
          return True
docs: 检查Session是否过期, 验证Session可用性