-
登录远程主机或者打开FTP连接工具
-
打开网站所在目录,找到以下文件 /uc_server/model 中找到admin.php
-
打开 /uc_server/model/admin.php这个文件
-
找到代码function adminbase() { parent::__construct(); this->cookie_status = 0; sid = this->cookie_status ? getgpc(‘sid’, ‘C’) :rawurlencode(getgpc(‘sid’, ‘R’)); this->sid = this->view->sid =this->sid_decode(sid) ?sid : ”;
-
将此部分代码 this->cookie_status = 0; 修改为 this->cookie_status = isset($_COOKIE[‘sid’]) ? 1 : 0;
-
代码修改完后的完整信息
function adminbase() { parent::__construct(); this->cookie_status = isset(_COOKIE[‘sid’]) ? 1 : 0; sid =this->cookie_status ? getgpc(‘sid’, ‘C’) :rawurlencode(getgpc(‘sid’, ‘R’)); this->sid =this->view->sid = this->sid_decode(sid) ? $sid : ”;
-
保存文件,登录后台更新网站即可