和登录一样,其实很简单,都是因为使用了废弃函数
利用$_SESSION重写exitUser()方法即可
/include/user/login.class.php
function exitUser()
{
ClearMyAddon();
/**
@session_unregister($this->keepUserIDTag);
@session_unregister($this->keepUserTypeTag);
@session_unregister($this->keepUserChannelTag);
@session_unregister($this->keepUserNameTag);
@session_unregister($this->keepUserPurviewTag);
*/
$_SESSION[$this->keepUserIDTag]=null;
$_SESSION[$this->keepUserTypeTag]=null;
$_SESSION[$this->keepUserChannelTag]=null;
$_SESSION[$this->keepUserNameTag]=null;
$_SESSION[$this->keepUserPurviewTag]=null;
DropCookie(‘dedeAdmindir’);
DropCookie(‘DedeUserID’);
DropCookie(‘DedeLoginTime’);
$_SESSION = array();
}
关于作者