Merge pull request #43 from x1ao4/x

解决和原版 Cookie 的冲突问题,避免双持用户相互挤掉登录状态
This commit is contained in:
x1ao4 2025-07-14 18:29:33 +08:00 committed by GitHub
commit 351b4df844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -270,7 +270,7 @@ def cleanup_expired_cache():
app = Flask(__name__)
app.config["APP_VERSION"] = get_app_ver()
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.json.ensure_ascii = False
app.json.sort_keys = False