CodeIgniter Forums
unlink() function not working locally windows env - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: unlink() function not working locally windows env (/showthread.php?tid=61478)



unlink() function not working locally windows env - rejoan - 04-18-2015

Hi,
I am using CI3 and session driver is "file". Every time when I want to logout then following error showing. Please see attachment.
This is happening only when I work on windows environment(XAMPP) but its ok in production server.

Previously I opened a topic on this but eventually the bug exist so far. This should be fixed.

** Strange behavior is sometimes it work. Most of the time its happened when long time pass as logged in.


RE: unlink() function not working locally windows env - ciadmin - 04-18-2015

The screenshot shows "permission denied". This happens if the user you are running your server as does not have permission to delete files from the folder you are using to store your session data.


RE: unlink() function not working locally windows env - rejoan - 04-18-2015

(04-18-2015, 10:15 AM)ciadmin Wrote: The screenshot shows "permission denied". This happens if the user you are running your server as does not have permission to delete files from the folder you are using to store your session data.
Then why sometimes work?


RE: unlink() function not working locally windows env - Narf - 04-19-2015

Is that on Windows 8?


RE: unlink() function not working locally windows env - rejoan - 04-19-2015

(04-19-2015, 03:28 AM)Narf Wrote: Is that on Windows 8?
No windows 7 and any browser. @Narf Please work on this issue. More clues on this issue

* After several time logout its works finally.
* I have used $this->session->sess_destroy(); in logout method
* after that my redirect is : redirect('abc/controller', 'refresh');
* I have huge ajax on page