Ö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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user