Commit b2f439b8 authored by Alan Garcia's avatar Alan Garcia
Browse files

Bug quand on usurpe une identité, puis qu'on se log en user sans se déloguer avant.

parent 8b0d4e30
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment