Dedecms
发布时间:2022-05-06 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了PHP5.4版本dedecms后台退出空白的解决方法,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
概述
解决办法: 打开include/userlogin.clas
s.php 找到 function exitUser()
{ ClearMyAddon(
); @session_unregister( $this -keepUserIDTag
); @session_unregister( $this -keepUserTypeTag
); @session_unregister( $this -keepUserCh
AnnelTag
); @session_unreg
@H_
673_13@
@L_696_0@办法:
打开include/userlogin.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);
-
DropCookie('dedeAdmindir');
-
DropCookie('DedeUserID');
-
DropCookie('DedeLoginTime');
-
$_SESSION = array();
-
}
替换为:
-
function exitUser()
-
{
-
ClearMyAddon();
-
#@session_unregister($this->keepUserIDTag);
-
$_SESSION[$this->keepUserIDTag] = $this->userID;
-
#@session_unregister($this->keepUserTypeTag);
-
$this->keepUserTypeTag] = $this->userType;
-
#@session_unregister($this->keepUserChAnnelTag);
-
$this->keepUserChAnnelTag] = $this->userChAnnel;
-
#@session_unregister($this->keepUserNaMetag);
-
$this->keepUserNaMetag] = $this->userName;
-
#@session_unregister($this->keepUserPurviewTag);
-
$this->keepUserPurviewTag] = $this->userPurview;
-
DropCookie('dedeAdmindir');
-
DropCookie('DedeUserID');
-
DropCookie('DedeLoginTime');
-
array();
-
}