From 6c92bedefba54f55d3ea1e973d633c50723cac65 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 30 May 2024 00:55:52 -0500 Subject: [PATCH] bug fix: session time to live --- index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.py b/index.py index 95c9b18..01e5fe8 100644 --- a/index.py +++ b/index.py @@ -17,6 +17,7 @@ from jinja2 import Environment, BaseLoader import typer import pandas as pd import uuid +import datetime _app = Flask(__name__) cli = typer.Typer() @@ -317,6 +318,7 @@ def start (path:str='config.json',shared:bool=False) : # _args = _route.get().get_app() _args = _route.get().app() _app.secret_key = str(uuid.uuid4()) + _app.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(minutes=30) _app.run(**_args) _status = 'found' else: