Welcome Guest, Not a member yet? Register   Sign In
Autoload of Session library
#1

I am autoloading database and session libraries in autoload.php

$autoload['libraries'] = array('database', 'session');  in autoload.php

The models and other controllers that I am loading in MY_Controller.php. use _SESSION. 

It seems like the session library is not loaded because I get Undefined variable: _SESSION /var/www/html/system/libraries/Session/Session.php 729


I have to force load by calling $this->load->library('session"); 


Anyone seem this issue in CI 3.0 before and fixed it?
Reply
#2

"_SESSION" is not a variable. "$_SESSION" is Undecided
Reply




Theme © iAndrew 2016 - Forum software by © MyBB