求助TP高手:用户点击退出,session destroy失败

浏览:2679 发布日期:2015/02/01 分类:求助交流 关键字: thinkphp,session destroy,用户退出
现象:用户登录后,点击退出,报错如下
NOTIC: [2] session_destroy() [<a href='function.session-destroy'>function.session-destroy</a>]: Session object destruction failed D:\wwwroot\dewchx\wwwroot\index\Lib\Action\PublicAction.class.php 第 125 行.

代码:
public function logout (){
session('userid', '');
session('username', '');
session('user', '');
session_destroy();
$this->redirect('index/index');
}

在本地服务器没有该错误,在虚拟主机上就报错了。
最佳答案
评论() 相关
后面还有条评论,点击查看>>