def ExpireOne(self, session, age=None, now=None):
    if now is None:
      now = self._Now()

    if age is None:
      age = datetime.timedelta(seconds=AGE_DEFAULT_SECONDS)

    session_mtime = self._Mtime(session)

    if session_mtime:
      d = now - session_mtime
    else:
      d = age + age  # undefined mtime, forcefully make it too old

    if d > age:
      self.Delete(session)
      return True
    else:
      return False
Expire old session data.
dataset/ETHPy150Open google/simian/src/simian/auth/base.py/AuthSessionBase.ExpireOne