I use CodeIgniter (v3.1.11) for my webapp and files as session_driver.
The session library is autoloaded and configured like this
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 21600;
$config['sess_use_database'] = false;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = false;
$config['sess_time_to_update'] = 300;
$config['sess_save_path'] = APPPATH . "cache/sessions/";
When I login I set my user informations in the session object using $this->session->set_userdata($myData)
And it create the corresponding session file with the informations I need into it
user@:~/path/to/application/cache/sessions$ sudo cat ci_sessionb69ca97bce23674e94809941346fae7300c4afaa
username|s:9:"user";id|i:2;logged_in|b:1;language|s:2:"EN";
But when my front requests the CodeIgniter controllers a new session file is created for each request with empty data and I end up not being able to retrieve the data stored in the initial session file.
user@:~/path/to/application/cache/sessions$ sudo cat ci_sessiondcdd28185aa2f7c9a4f83841193e8c826399abc5
__ci_last_regenerate|i:1603286120;
What could possibly make this happen ?