Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def order_history():
|
|
104 |
except Exception as e:
|
105 |
print(f"Error fetching order history: {str(e)}")
|
106 |
return render_template("order_history.html", orders=[], error=str(e))
|
107 |
-
app.permanent_session_lifetime = timedelta(minutes=
|
108 |
@app.before_request
|
109 |
def check_session_timeout():
|
110 |
if "last_activity" in session:
|
|
|
104 |
except Exception as e:
|
105 |
print(f"Error fetching order history: {str(e)}")
|
106 |
return render_template("order_history.html", orders=[], error=str(e))
|
107 |
+
app.permanent_session_lifetime = timedelta(minutes=5)
|
108 |
@app.before_request
|
109 |
def check_session_timeout():
|
110 |
if "last_activity" in session:
|