Enhance session management and user authentication flow; implement day session tokens, improve cookie handling, and streamline date handling in planner

This commit is contained in:
2026-09-09 19:18:42 +02:00
parent 2062fd065a
commit 963342f858
5 changed files with 146 additions and 89 deletions
+1 -1
View File
@@ -255,7 +255,7 @@
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';
console.warn('Notificatiesessie niet geauthenticeerd.');
return;
}
if (res.ok) {