Ökat på storleken på sessionskakan för att se om det tar bort varningen om att den är större än 4096 byte.

This commit is contained in:
2024-08-03 18:45:50 +02:00
parent 06628d5c19
commit f160092b2a
+4
View File
@@ -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?