A few days ago installed the DEDECMS system, when the safe exit in the background, the background appears blank, previously only to analyze other functions to go, also did not pay attention to security, looked at the safe exit code, is written in this way:
Copy Code code as follows:
function Exituser ()
{
Clearmyaddon ();
@ ($this->keepuseridtag);
@session_unregister ($this->keepusertypetag);
@session_unregister ($this->keepuserchanneltag);
@session_unregister ($this->keepusernametag);
@session_unregister ($this->keepuserpurviewtag);
Dropcookie (' Dedeadmindir ');
Dropcookie (' Dedeuserid ');
Dropcookie (' Dedelogintime ');
$_session = Array ();
}
This just dawned on me, previously wrote a dede after the installation of the log in the background blank, then remember that the problem may be the PHP version, my PHP version is 5.4 version, checked out because of the new version of the problem, the original php5.4 version, deleted the Session_ Unregister this function, ya, dedecms also too not with the times, at least to support the latest PHP version of it, alas, I spent time to analyze. Backstage this function replaces the unset to be perfectly solved.