This commit is contained in:
chenyang
2022-07-03 09:55:22 +08:00
parent 8d9083ea58
commit 5720ad7434
4 changed files with 52 additions and 7 deletions
+4
View File
@@ -154,3 +154,7 @@ AUTH_USER_MODEL = "server_auth.MindUser"
AUTHENTICATION_BACKENDS = [
'server_auth.lib.auth.AuthBackend',
]
# session 设置
SESSION_COOKIE_AGE = 60 * 30 # 设置过期时间10分钟,默认为两周
SESSION_SAVE_EVERY_REQUEST = True