Welcome Guest, Not a member yet? Register   Sign In
Custom Session driver needs to be added to sess_valid_drivers
#1

I use CodeIniter 3.0. I created a custom Session driver. The documentation says
Quote:The driver specified by ‘sess_driver’ is automatically included as a valid driver. However, if you want to make a custom driver available as an option without making it the initially loaded driver, set ‘sess_valid_drivers’ in your config.php file to an array including your driver name
This suggests that it is not necessary to include the driver in the sess_valid_drivers array. I set my driver as sess_driver. However, if I don't include the name of my driver in the sess_valid_drivers array, I get the error "Fatal error: Call to a member function sess_save() on a non-object in (...)/system/libraries/Session/Session.php on line 302". If I include the name of the driver in my array, it works perfectly.

Is the suggestion that the selected driver is automatically included as a valid driver incorrect (which means an error in the code or the documentation)? Or am I mistaken?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB