(09-20-2016, 07:17 AM)daveĀ friend Wrote: Just to be perfectly clear. What everybody is saying is...
Change this
Code:
$autoload['libraries'] = array('database', 'user_agent');
$autoload['drivers'] = array('session');
to this
Code:
$autoload['libraries'] = array('database', 'user_agent', 'session');
Yes.
However, I would note that this shouldn't make a difference in determining whether the session library works. Putting it in the drivers array just means that it will also load the CI_Driver_Library class, which you don't need for the session library.
If you're autoloading the library, you don't need to load it again in your controller, but that still shouldn't be causing the problem you're describing.
One potential area for this error would be any hooks you might have configured which attempt to use the session library, especially pre_system, cache_override, and pre_controller hooks.