CodeIgniter Forums
Session Error CI3 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Session Error CI3 (/showthread.php?tid=62295)



Session Error CI3 - thespawn_cl - 06-29-2015

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!


RE: Session Error CI3 - alotufo - 06-29-2015

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


RE: Session Error CI3 - skunkbad - 06-29-2015

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.


RE: Session Error CI3 - CroNiX - 06-29-2015

http://www.codeigniter.com/user_guide/libraries/sessions.html#files-driver


RE: Session Error CI3 - thespawn_cl - 06-30-2015

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


RE: Session Error CI3 - omidud - 07-07-2015

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

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

and now is work


Thanks