I use to have this issue in 2.x but I thought the issue was addressed in CI 3.x. This has happened twice and I cannot figure out why. The 1st time it happened I was debugging and using die and var_dump a lot so I am not sure if that caused it? I might have deleted/recreated database which I know what would cause the issue; but I am pretty sure I didn't.
I am not sure what caused it the 2nd time?
Here are my settings:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'phppos';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = 'sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Do you know what can cause the session to be destroyed? I didn't check if the cookie was missing but next time it happens I will. I am using Safari 9 on mac os x