[eluser]SaSa[/eluser]
why when that `$config['cookie_secure']` is `TRUE`, not work `$this->session->userdata()` and return is false?<br>
what di i do?
application\config\config.php:
Code:
$config['cookie_secure'] = TRUE;
<p>
Code:
$newdata = array(
'user' => $this->input->post('useradmin'),
'logged_in' => TRUE
);
$this->session->set_userdata($newdata);
////////////////////// in following code return is false if $config['cookie_secure'] = TRUE; //////////////////////////////////
function foreign_tourt(){
if($this->session->userdata('logged_in')) {
$this->load->view('admin/foreign_tour');
}else{
return false;
}
}