From b2f439b80c8eccc4d39630836b93ac9ac8f28d97 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 24 Aug 2012 13:13:22 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20quand=20on=20usurpe=20une=20identit=C3=A9?= =?UTF-8?q?,=20puis=20qu'on=20se=20log=20en=20user=20sans=20se=20d=C3=A9lo?= =?UTF-8?q?guer=20avant.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_mem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index 9f093ff2..8368293a 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -297,7 +297,7 @@ class m_mem { $err->log("mem","del_session"); $_COOKIE["session"]=addslashes(isset($_COOKIE["session"])?$_COOKIE["session"]:''); setcookie("session","",0,"/"); - setcookie("oldid","",0,"/admin/"); + setcookie("oldid","",0,"/"); if ($_COOKIE["session"]=="") { $err->error=0; return true; @@ -327,6 +327,7 @@ class m_mem { $GLOBALS[$c]->alternc_del_session(); } } + session_unset(); return true; }