Minor update on session using https
This commit is contained in:
@@ -35,7 +35,7 @@ app.config['TEMPLATES_AUTO_RELOAD'] = os.environ.get('TEMPLATES_AUTO_RELOAD')
|
|||||||
|
|
||||||
# Session configuration for "Remember Me" functionality
|
# Session configuration for "Remember Me" functionality
|
||||||
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=30)
|
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=30)
|
||||||
app.config['SESSION_COOKIE_SECURE'] = False # Set to True if using HTTPS
|
app.config['SESSION_COOKIE_SECURE'] = True # Set to True if using HTTPS
|
||||||
app.config['SESSION_COOKIE_HTTPONLY'] = True
|
app.config['SESSION_COOKIE_HTTPONLY'] = True
|
||||||
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
|
app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user