PHP5.4版本dedecms后台退出空白的解决方法

解决办法:

打开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);         
        $_SESSION[$this->keepUserTypeTag] = $this->userType; 
        #@session_unregister($this->keepUserChannelTag);         
        $_SESSION[$this->keepUserChannelTag] = $this->userChannel; 
        #@session_unregister($this->keepUserNameTag);         
        $_SESSION[$this->keepUserNameTag] = $this->userName; 
        #@session_unregister($this->keepUserPurviewTag);         
        $_SESSION[$this->keepUserPurviewTag] = $this->userPurview; 
        DropCookie('dedeAdmindir'); 
        DropCookie('DedeUserID'); 
        DropCookie('DedeLoginTime'); 
        $_SESSION = array(); 
    } 

相关文章

dedecms

dedecms在php5.4环境下登录后台或者退出后台报错或者显示页面找不到的问题解决

2021-3-13 17:14:00

dedecms

各种dedeCM织梦后台登陆验证码错误或不显示解决方法大全

2021-3-13 20:46:20

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索