mirror of https://github.com/CIRCL/AIL-framework
fix: [Flask session cookie name] add uuid to cookie name
parent
5ad529bc7f
commit
0d1c13fcdf
|
@ -6,6 +6,7 @@ import sys
|
||||||
import ssl
|
import ssl
|
||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
|
import uuid
|
||||||
|
|
||||||
import redis
|
import redis
|
||||||
import random
|
import random
|
||||||
|
@ -98,7 +99,7 @@ app.register_blueprint(import_export, url_prefix=baseUrl)
|
||||||
# ========= =========#
|
# ========= =========#
|
||||||
|
|
||||||
# ========= Cookie name ========
|
# ========= 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 ========
|
# ========= session ========
|
||||||
app.secret_key = str(random.getrandbits(256))
|
app.secret_key = str(random.getrandbits(256))
|
||||||
|
|
Loading…
Reference in New Issue