Skip to content

Commit

Permalink
force clear session on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
klementng committed Jan 26, 2024
1 parent b7e2928 commit 6971f6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6971f6a

Please sign in to comment.