Bug quand on usurpe une identité, puis qu'on se log en user sans se déloguer avant.
This commit is contained in:
parent
8b0d4e3031
commit
b2f439b80c
|
@ -297,7 +297,7 @@ class m_mem {
|
||||||
$err->log("mem","del_session");
|
$err->log("mem","del_session");
|
||||||
$_COOKIE["session"]=addslashes(isset($_COOKIE["session"])?$_COOKIE["session"]:'');
|
$_COOKIE["session"]=addslashes(isset($_COOKIE["session"])?$_COOKIE["session"]:'');
|
||||||
setcookie("session","",0,"/");
|
setcookie("session","",0,"/");
|
||||||
setcookie("oldid","",0,"/admin/");
|
setcookie("oldid","",0,"/");
|
||||||
if ($_COOKIE["session"]=="") {
|
if ($_COOKIE["session"]=="") {
|
||||||
$err->error=0;
|
$err->error=0;
|
||||||
return true;
|
return true;
|
||||||
|
@ -327,6 +327,7 @@ class m_mem {
|
||||||
$GLOBALS[$c]->alternc_del_session();
|
$GLOBALS[$c]->alternc_del_session();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
session_unset();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue