Welcome Guest, Not a member yet? Register   Sign In
CI 3 HMVC Modular Extensions can't load Session Library
#11

(This post was last modified: 04-03-2015, 12:53 PM by CroNiX.)

(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'
Reply
#12

Code:
$config['sess_driver'] = 'database';
$config['sess_save_path'] = 'ci_sessions';

You also need to create the table if it does not exist.
Reply
#13

(04-03-2015, 04:11 PM)frocco Wrote:
Code:
$config['sess_driver'] = 'database';
$config['sess_save_path'] = 'ci_sessions';

You also need to create the table if it does not exist.

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();
4. Save the edit and reload the application. Big Grin
Reply
#14

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;
Reply




Theme © iAndrew 2016 - Forum software by © MyBB