Skip to content

Commit 9b2e2c4

Browse files
author
rain
committed
session过期时间12h
1 parent 75e9159 commit 9b2e2c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import datetime
23
basedir = os.path.abspath(os.path.dirname(__file__))
34

45

@@ -17,6 +18,7 @@ class Config:
1718
FLASKY_ADMIN = os.environ.get('FLASKY_ADMIN')
1819
FLASKY_USERS_PER_PAGE = 20
1920
FLASKY_SLOW_DB_QUERY_TIME = 0.5
21+
PERMANENT_SESSION_LIFETIME = datetime.timedelta(seconds=12*3600)
2022

2123
@staticmethod
2224
def init_app(app):

0 commit comments

Comments
 (0)