Browse Source

Fix session persistence after logout - clear localStorage

CNBUGS AI 1 month ago
parent
commit
0ca54fda4a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/static/js/app.js

+ 1 - 1
web/static/js/app.js

@@ -61,7 +61,7 @@ document.getElementById('loginForm').addEventListener('submit', async (e) => {
 
 // Logout
 document.getElementById('logoutBtn').addEventListener('click', () => {
-    sessionId = null;
+    localStorage.removeItem('session_id');
     location.reload();
 });