From 831a2ec8757cba209c0c9244d9ee2c6e6ad9a5ab Mon Sep 17 00:00:00 2001 From: Esenjin Date: Mon, 6 Jan 2025 20:27:50 +0100 Subject: [PATCH] =?UTF-8?q?une=20session=20admin=20expire=20apr=C3=A8s=202?= =?UTF-8?q?4h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin.php | 7 +++++++ 1 file changed, 7 insertions(+) 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() {