From 0d1c13fcdf14fa7c3c1e3d0a15412c2ff20eba09 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 6 Apr 2020 11:22:31 +0200 Subject: [PATCH] fix: [Flask session cookie name] add uuid to cookie name --- var/www/Flask_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/var/www/Flask_server.py b/var/www/Flask_server.py index 07ecbb41..576f552e 100755 --- a/var/www/Flask_server.py +++ b/var/www/Flask_server.py @@ -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))