Beispiel #1
0
 def refresh_expired(self):
     '''重新激活失效时间'''
     self.expired = after_seconds(settings.SESSION_COOKIE_AGE)
Beispiel #2
0
 def __init__(self, type):
     self.type = type
     self.expired = after_seconds(auth_settings.AUTH_IDENTIFIER_TIMEOUT)
Beispiel #3
0
 def __init__(self, sid, user, from_ip=None):
     self.sid = sid
     self.user_id = user.id
     self.expired = after_seconds(settings.SESSION_COOKIE_AGE)
     if from_ip:
         self.from_ip = from_ip