Welcome Guest, Not a member yet? Register   Sign In
CI3 SESSION
#1

I'm trying to create a custom helper for ci3, and trying to store the values on $_SESSION variable, so i tried to auload session with $autoload['drivers'] = array('session'); on /application/config/autoload.php, but i am getting an error:

A PHP Error was encountered Severity: Notice Message: Undefined: 110

could it be something in my admin controller?

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Admin extends CI_Controller {
public function _construct() {
parent::_construct();
}
public function index(){
$this->load->view('Portada');
}
}
Reply
Reply
#3

Session is not a driver, it is a library.

Loading it using $autoload['libraries'] = array('session'); should solve your problem.
Reply
#4

(03-24-2015, 02:23 PM)silentium Wrote: Session is not a driver, it is a library.

Loading it using $autoload['libraries'] = array('session'); should solve your problem.

Oh yes! is true! didn't realized i put it in the libraries autoload.. Thank you Silentium
Reply




Theme © iAndrew 2016 - Forum software by © MyBB