CodeIgniter Forums
Session: Configured driver name is not valid, aborting. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Session: Configured driver name is not valid, aborting. (/thread-384.html)



Session: Configured driver name is not valid, aborting. - Madthumb - 11-27-2014

Version: CodeIgniter 3.0
I was tying to add a custom session driver class base on: http://www.codeigniter.com/userguide3/libraries/sessions.html#saving-session-data-to-a-database.
I changes:
1. Add $autoload['drivers'] = array('session'); in autoload.php
2. Add $config['sess_driver'] = 'foo'; in config.php
3. Copy the custom session class from above link and put it in application/libraries/Session/drivers/Session_foo.php
4. I run a test code: $this->session->set_userdata( $user_data );
5. Then I got this error: Session: Configured driver name is not valid, aborting.

Can anyone help me points out what did I do wrong? or am I missing any step?

Big thanks!


RE: Session: Configured driver name is not valid, aborting. - Rufnex - 11-27-2014

Have you edit the Class name from CI_Session_custom to CI_Session_foo in your e.g.?