Why call session not working? |
my config is like this :
Code: $config['sess_driver'] = 'database'; // select database driver My autoload is like this : Code: $autoload['libraries'] = array('database', 'session', 'form_validation', 'functions'); In controller login.php : Code: $this->session->set_userdata('club', 'chelsea'); In controller dashboard.php : Code: echo $this->session->userdata('club'); It did not succeed in calling the session club if a different controller But, when I call session club in the same controller(controller login.php), it's working I try Code: $this->library->load('session'); in the constructor of Code: Dashboard.php . But it's not a success Any solution to solve my problem? Thank you |
Messages In This Thread |
Why call session not working? - by garimapatil - 12-05-2018, 12:04 AM
RE: Why call session not working? - by php_rocs - 12-05-2018, 10:40 AM
RE: Why call session not working? - by dave friend - 12-05-2018, 01:55 PM
RE: Why call session not working? - by php_rocs - 12-06-2018, 11:00 AM
|