NOTIC: [2] session_destroy() [<a href='function.session-destroy'>function.session-destroy</a>]: Session ob
代码:
public function logout (){
session('userid', '');
session('username', '');
session('user', '');
session_destroy();
$this->redirect('index/index');
}
在本地服务器没有该错误,在虚拟主机上就报错了。
最佳答案