phpcodeignitersessionsentora

Codeigniter not writing sessions with Sentora


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

Solution

  • Set

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

    in config.php