Make session permanent (90 days, actually)
This commit is contained in:
parent
b6db3f0ea9
commit
a163976b1d
2
app.py
2
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/<string:key>")
|
||||
|
|
Loading…
Reference in New Issue