Welcome Guest, Not a member yet? Register   Sign In
cookie_secure=TRUE and problem in userdata.
#1

[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;
            }
        }
#2

[eluser]danmontgomery[/eluser]
Code:
| 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.

Are you using https?
#3

[eluser]SaSa[/eluser]
no




Theme © iAndrew 2016 - Forum software by © MyBB