Php CodeIgniter单击手机中的任何菜单,而不是登录过期问题
CodeIgniter项目在pc上运行良好,但在移动会话中,注销后会发出任何页面点击 编码点火控制器Php CodeIgniter单击手机中的任何菜单,而不是登录过期问题,php,codeigniter,Php,Codeigniter,CodeIgniter项目在pc上运行良好,但在移动会话中,注销后会发出任何页面点击 编码点火控制器 defined('BASEPATH') OR exit('No direct script access allowed'); class Mechanical_rdi extends CI_Controller { public function __construct() { parent::__co
defined('BASEPATH') OR exit('No direct script access allowed');
class Mechanical_rdi extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Mechanical_model_rdi');
if ($this->session->userdata['user'] != TRUE)
{
$_SESSION['error']= 'Login first for access..';
echo "
<script>
window.location.href = '".base_url()."?err=1';
</script>
";
}
}
您是否已通过将sess\u match\u ip设置为FALSE进行检查?好的,好的,先生,我的问题是,请在更新之前参阅
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = sys_get_temp_dir();
$config['sess_match_ip'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;