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

pull/457/merge
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
1 changed files with 2 additions and 1 deletions

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