fix: [Flask session cookie name] add uuid to cookie name

This commit is contained in:
Terrtia 2020-04-06 11:22:31 +02:00
parent 5ad529bc7f
commit 0d1c13fcdf
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -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))