diff --git a/admin.php b/admin.php index 6731f84..1dc6628 100644 --- a/admin.php +++ b/admin.php @@ -1,6 +1,13 @@ $timeout) { + session_destroy(); + header('Location: admin.php?action=login'); + exit; +} +$_SESSION['last_activity'] = time(); // Vérifier si un utilisateur est connecté function checkAuth() {