Codeigniter not writing sessions with Sentora

272 Views Asked by At

I migrated my application to a server with Sentora but I am having trouble of getting sessions to work properly, I have set the path properly but it seems this code is not recognized. Hope you can help me? It is working perfectly fine before when I hosted it in a non-Sentora environment. I also made the sessions folder 0700 with www-data as owner.

$this->session->set_userdata($data);
1

There are 1 best solutions below

1
On BEST ANSWER

Set

$config['sess_save_path'] =  sys_get_temp_dir();

in config.php