mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-20 11:48:31 -06:00
Do not honour the session-id, longer than 40 characters, instead create
new session-id in that case.
This commit is contained in:
parent
b383c67fa5
commit
e8b4bb909b
@ -186,6 +186,8 @@ SESSION_DB_PATH = os.path.join(
|
||||
'sessions'
|
||||
)
|
||||
|
||||
SESSION_COOKIE_NAME = 'pga4_session'
|
||||
|
||||
##########################################################################
|
||||
# Mail server settings
|
||||
##########################################################################
|
||||
|
@ -204,7 +204,7 @@ class ServerSideSessionInterface(SessionInterface):
|
||||
Returns the SqliteSessionStorage object representing this session.
|
||||
"""
|
||||
sid = request.cookies.get(app.session_cookie_name)
|
||||
if not sid:
|
||||
if not sid or len(sid) > 40:
|
||||
sid = str(uuid4())
|
||||
return SqliteSessionStorage(self.directory, sid)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user