我收到的完整错误消息是
A PHP Error was encountered
Severity: Warning
Message: ini_set(): Headers already sent. You cannot change the session
module's ini settings at this time
Filename: Session/Session.php
Line Number: 282
Backtrace:
File: /customers/6/0/7/xxx/httpd.www/application/controllers/Users.php
Line: 21
Function: __construct
File: /customers/6/0/7/xxx/httpd.www/index.php
Line: 315
Function: require_once
在自动加载中,我添加了
$autoload['libraries'] = array('database','session','form_validation');
我的用户控制器的构造函数是
public function __construct() {
parent::__construct();
$this->load->model('Users_model', 'user');
}
我没有在代码中的任何地方使用session_start()