mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [Flask session cookie name] add uuid to cookie name
This commit is contained in:
parent
5ad529bc7f
commit
0d1c13fcdf
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ import sys
|
|||
import ssl
|
||||
import json
|
||||
import time
|
||||
import uuid
|
||||
|
||||
import redis
|
||||
import random
|
||||
|
@ -98,7 +99,7 @@ app.register_blueprint(import_export, url_prefix=baseUrl)
|
|||
# ========= =========#
|
||||
|
||||
# ========= Cookie name ========
|
||||
app.config.update(SESSION_COOKIE_NAME='ail_framework_{}'.format(FLASK_PORT))
|
||||
app.config.update(SESSION_COOKIE_NAME='ail_framework_{}'.format(uuid.uuid4().int))
|
||||
|
||||
# ========= session ========
|
||||
app.secret_key = str(random.getrandbits(256))
|
||||
|
|
Loading…
Reference in a new issue