Session Error CI3 |
Hi, I have a problem with session that I don't know why this happen.
This is the error- A PHP Error was encountered /*********************************/ Severity: Warning Message: unlink(/tmp/ci_session63dd0d31085bffc2cd626dce8f5fb2ff5b8e5dc2) [function.unlink]: Operation not permitted Filename: drivers/Session_files_driver.php Line Number: 354 Backtrace: File: /home/classic/public_html/registro/application/controllers/Equipo.php Line: 9 Function: library File: /home/classic/public_html/registro/index.php Line: 292 Function: require_once /*********************************/ In the Line 9 in the Equipo.php controller I have this code: $this->load->library(array('session','form_validation')); Anybody can help to me to fix this, please. Thank you!
It looks like your web server is not allowing the unlink PHP function. You'd probably need to enable it in your PHP configuration.
The best way to handle this will be to change the session save path to something that www-data has better permissions. It would be better if you changed the session save path to something like APPPATH . 'tmp'
This is on line 361 of config/config.php Even better, if a database is available, would be to have a sessions table and use it instead of file based sessions.
(06-29-2015, 12:36 PM)skunkbad Wrote: The best way to handle this will be to change the session save path to something that www-data has better permissions. It would be better if you changed the session save path to something like APPPATH . 'tmp' Finally, change the path in the 361 line and this was fix. ![]() Thank you very much!
i was $config['sess_driver'] = 'files';
and i change to $config['sess_driver'] = 'memcached'; and now is work Thanks |
Welcome Guest, Not a member yet? Register Sign In |