mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-16 01:10:44 +08:00
解决和原版 Cookie 冲突,避免双持用户相互挤掉登录
This commit is contained in:
parent
e573b1198c
commit
c83f20b414
@ -270,7 +270,7 @@ def cleanup_expired_cache():
|
|||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config["APP_VERSION"] = get_app_ver()
|
app.config["APP_VERSION"] = get_app_ver()
|
||||||
app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d"
|
app.secret_key = "ca943f6db6dd34823d36ab08d8d6f65d"
|
||||||
app.config["SESSION_COOKIE_NAME"] = "QUARK_AUTO_SAVE_SESSION"
|
app.config["SESSION_COOKIE_NAME"] = "QUARK_AUTO_SAVE_X_SESSION"
|
||||||
app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(days=31)
|
app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(days=31)
|
||||||
app.json.ensure_ascii = False
|
app.json.ensure_ascii = False
|
||||||
app.json.sort_keys = False
|
app.json.sort_keys = False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user