From 0ca54fda4aa317b68389e4e0e6cf710a3da83646 Mon Sep 17 00:00:00 2001 From: CNBUGS AI Date: Fri, 24 Apr 2026 16:09:51 +0800 Subject: [PATCH] Fix session persistence after logout - clear localStorage --- web/static/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/js/app.js b/web/static/js/app.js index e5238a5..78f0ea9 100644 --- a/web/static/js/app.js +++ b/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(); });