From a163976b1ddf83332c44781cde06c3797ec9b51b Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 13 Nov 2022 21:39:37 +0100 Subject: [PATCH] Make session permanent (90 days, actually) --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index de0b93c..d356304 100644 --- a/app.py +++ b/app.py @@ -73,6 +73,8 @@ def confirm(): if not bod: return render_template("wrong_key.html") session["user"] = { "id": bod.id, "email": bod.email} + session.permanent = True + app.permanent_session_lifetime = datetime.timedelta(days=90) return redirect(request.args["target"]) @app.route("/vote/")