Implement session expiration enforcement: clear remember cookies and redirect to login on session expiry; update header script for daily re-login requirement.

This commit is contained in:
2026-09-09 16:49:29 +02:00
parent 1487b680f1
commit 1b6c8e4afd
7 changed files with 71 additions and 76 deletions
+4
View File
@@ -254,6 +254,10 @@
isFetchingEvents = true;
try {
const res = await fetch('/api/notifications.php?action=get_events', { cache: 'no-store' });
if (res.status === 401) {
window.location.href = '/auth/login.php?expired=1';
return;
}
if (res.ok) {
const data = await res.json();
if (data && data.success) {