CodeIgniter Forums
Unable to locate session.php - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Unable to locate session.php (/showthread.php?tid=66579)



Unable to locate session.php - fokhwar - 11-07-2016

Good day to All,

Currently, i am using CI 3.1.2.
There is an error like below.

"unable to locate the specified class: Session.php"

Below is my code. ci_sessions table also created.
Please help me if you guy already faced such error.

config.php
PHP Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE

autoload.php
PHP Code:
$autoload['libraries'] = array('session'); 



RE: Unable to locate session.php - InsiteFX - 11-07-2016

Are you sure that your paths are correct? It works fine on my system.


RE: Unable to locate session.php - fokhwar - 11-13-2016

(11-07-2016, 12:08 PM)InsiteFX Wrote: Are you sure that your paths are correct? It works fine on my system.

Dear InsiteFX,

Thank you for your reply.

Last time CI version allows the library to extend CI controller and use all controller functions.
After ci3 migration, that library cause issue.

Regards,
fokhwar


RE: Unable to locate session.php - InsiteFX - 11-13-2016

sess_save_path should be your database table name, also make sure that if you upgraded that you copied the whole system directory over.