I developed a codeigniter application that sometimes throw an exception in session_start.
The returned code is:
A PHP Error was encountered
Message: session_start(): ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13)
Line Number: 2
In this line, I have just "session_start"
But this problem occurs occasionally.
Should I change the temp folder to another one inside CI folder?
You need to set session path in configuration settings
In application/config/config.php set
$config['sess_save_path'] = FCPATH . 'application/cache/sessions/';
It works for me.