CI 3 HMVC Modular Extensions can't load Session Library |
(04-03-2015, 12:42 PM)mdixon18 Wrote: How do you do this In CI3 either the documentation isn't updated or I'm looking in the wrong place. As i would like to use database for sessions http://www.codeigniter.com/userguide3/li...references Same place as always, in /application/config/config.php: PHP Code: $config['sess_driver'] = 'database'; Code: $config['sess_driver'] = 'database'; You also need to create the table if it does not exist.
(04-03-2015, 04:11 PM)frocco Wrote: You do not have to save sessions to database if you have not designed your app to. The fix for the above issue is: 1. Open the config.php in Application folder 2. on line 367(my case) look for $config['sess_save_path'] = NULL. 3. Change this line to : Code: $config['sess_save_path'] = sys_get_temp_dir();
Yes it's work for me with codeigniter 3.0 and HMVC
$config['sess_driver'] = 'files'; $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; |
Welcome Guest, Not a member yet? Register Sign In |