File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def init_app(app):
25
25
app .config ["WTF_CSRF_CHECK_DEFAULT" ] = False
26
26
app .config ["WTF_CSRF_SSL_STRICT" ] = False
27
27
app .config ["WTF_CSRF_TIME_LIMIT" ] = settings .CSRF_TIME_LIMIT
28
+ app .config ["SESSION_COOKIE_NAME" ] = settings .SESSION_COOKIE_NAME
28
29
29
30
@app .after_request
30
31
def inject_csrf_token (response ):
Original file line number Diff line number Diff line change 82
82
# Whether the session cookie is set HttpOnly.
83
83
SESSION_COOKIE_HTTPONLY = parse_boolean (os .environ .get ("REDASH_SESSION_COOKIE_HTTPONLY" , "true" ))
84
84
SESSION_EXPIRY_TIME = int (os .environ .get ("REDASH_SESSION_EXPIRY_TIME" , 60 * 60 * 6 ))
85
+ SESSION_COOKIE_NAME = os .environ .get ("REDASH_SESSION_COOKIE_NAME" , "session" )
85
86
86
87
# Whether the session cookie is set to secure.
87
88
REMEMBER_COOKIE_SECURE = parse_boolean (os .environ .get ("REDASH_REMEMBER_COOKIE_SECURE" ) or str (COOKIES_SECURE ))
You can’t perform that action at this time.
0 commit comments