消息:取消链接(/ tmp / ci_session0189a7f1c86eb18fb70afcfedc2d5040e9c23146):不允许操作

时间:2017-06-05 09:35:48

标签: codeigniter codeigniter-2 codeigniter-3

我不定期收到错误,但是在时间间隔之后:

  

消息:   取消关联(/ TMP / ci_session0189a7f1c86eb18fb70afcfedc2d5040e9c23146):   不允许操作

在配置中我尝试了:

$config['sess_save_path'] = sys_get_temp_dir();

也尝试过: -

在配置中:

$config['sess_save_path'] = BASE_URL.'application/temp/';

也更改了(755 & 777)

的权限

虽然没有得到解决..

1 个答案:

答案 0 :(得分:0)

使用FCPATH或APPPATH

位置应用程序> temp

$config['sess_save_path'] = APPPATH . 'temp/';

OR

$config['sess_save_path'] = FCPATH . 'application/temp/';
  

会话0700的文件夹权限

EXT: The PHP file extension
FCPATH: Path to the front controller (this file) (root of CI)
SELF: The name of THIS file (index.php)
BASEPATH: Path to the system folder
APPPATH: The path to the "application" folder