From 6971f6a47e14b2147eb793be53d6f8aefc881c96 Mon Sep 17 00:00:00 2001 From: klementng Date: Fri, 26 Jan 2024 12:37:44 +0800 Subject: [PATCH] force clear session on logout --- server/core/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/core/app.py b/server/core/app.py index 543b2ee..f0e6695 100644 --- a/server/core/app.py +++ b/server/core/app.py @@ -87,6 +87,11 @@ def main(path): if 'logout' in request.args: logger.debug('Logging out') + + for key in session: + session.pop(key) + + session.modified = True session.clear() a_h = request.headers.get("Authorization")