Kunwar Kishor
Kunwar Kishor

Reputation: 71

I am facing a issue in my project which is created in codeigniter,

I am facing a issue in my project which is build in codeigniter, I am facing auto-logout problem and when I see log(error-log) file I found error the error are following:-

ERROR - 2017-11-15 16:15:50 --> Severity: Warning --> unlink(X:\xampp\tmp\ci_sessionboq544svmdme7blb7djjh1h92tnflmk7): Permission denied X:\xampp\htdocs\nabet-bmo\Code_v1\system\libraries\Session\drivers\Session_files_driver.php 320

ERROR - 2017-11-15 16:15:50 --> Severity: Warning --> session_regenerate_id(): Session object destruction failed X:\xampp\htdocs\nabet-bmo\Code_v1\system\libraries\Session\Session.php 720

Please help to resolve this problem

Upvotes: 0

Views: 87

Answers (1)

Anand Pandey
Anand Pandey

Reputation: 2025

In the config.php file you MUST set sess_save_path to a valid path. It was initially set to NULL. I have mine set to:

Now the sessions are being saved in this folder and can be unlinked when needed to

change application > config > config.php

$config['sess_save_path'] =  BASEPATH . 'cache/';

Upvotes: 1

Related Questions