Welcome Guest, Not a member yet? Register   Sign In
Session Error CI3
#1

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!
Reply
#2

It looks like your web server is not allowing the unlink PHP function. You'd probably need to enable it in your PHP configuration.
Reply
#3

(This post was last modified: 06-29-2015, 12:39 PM by skunkbad.)

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.
Reply
Reply
#5

(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'

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.

Finally, change the path in the 361 line and this was fix.  Big Grin


Thank you very much!
Reply
#6

i was $config['sess_driver'] = 'files';

and i change to $config['sess_driver'] = 'memcached';

and now is work


Thanks
Reply




Theme © iAndrew 2016 - Forum software by © MyBB