• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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

#4
http://www.codeigniter.com/user_guide/li...les-driver
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.