diff --git a/smartassist/src/backend.py b/smartassist/src/backend.py index de7deb9..b746d34 100644 --- a/smartassist/src/backend.py +++ b/smartassist/src/backend.py @@ -22,6 +22,10 @@ logger.debug("Current working directory: %s", os.getcwd()) app = Flask(__name__) app.config['STATIC_FOLDER'] = 'static' # Adjust if needed +# Increase the maximum cookie size +app.config['SESSION_COOKIE_SAMESITE'] = 'Lax' +app.config['SESSION_COOKIE_SIZE_LIMIT'] = 4096 * 2 # Allow up to 8KB cookies + # Set the secret key for session management secret_key = os.urandom(24) app.config['SECRET_KEY'] = secret_key # When do I need this. How is it retained between sessions?