This weekend I migrated to version 3.1 coming from 2.2.6.
Unable to locate the specified class: Session.php
I googled and a lot of hits but not the right one for me.
In autoload.php I have:
PHP Code:
$autoload['libraries'] = array('database', 'user_agent');
$autoload['drivers'] = array('session');
But I am wondering what is the best way to use sessions in my controller.
Is thrown in my first sub class derived as follows.
PHP Code:
class MY_Ezbuild extends CI_Controller {
function __construct() {
ob_start();
parent::__construct();
$this->outputdir = "/htdocs/b4y_v18/";
$this->load->library('session');
Here fore I need session data in my construct of MY_Ezbuild:
PHP Code:
$this->session->set_userdata('language', 'NL');
$this->session->set_userdata('poolID', '1');
$this->session->set_userdata('labelID', '1');
Any help more than appreaceated.
John