I set a session variable in my login controller after successful login. When I check for the variable in my dashboard controller no session data is found.
When I check the session in the login controller, session data exists. It does not exist when I check the dashboard controller. I have also tried using database sessions with no success.
I am using CodeIgniter 3.1.3 with HMVC (Module Based MX Controller). Code and screenshots of my current issue follow.
My Config File for Session
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH . 'cache/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Attachment 1
Attachment 2
Attachment 3
Attachment 4
Blockquote