最近访客
百度未收录

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(); 
    } 
温馨提示:本文最后更新于2022/10/20 02:22:44。若文章内容或图片失效,请留言联系站长反馈!
!
也想出现在这里? 联系我们
创意广告
© 版权声明
THE END
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    请登录后查看评论内容