diff options
author | Andrey Andreev <narf@devilix.net> | 2015-02-21 18:20:03 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2015-02-21 18:20:03 +0100 |
commit | c519b26d78edb21fd189e73f0feb12690aa34f2d (patch) | |
tree | 710e4b312499da0b210855b18047ca6314cc3533 /system/libraries/Session/drivers/Session_files_driver.php | |
parent | cd99fb66967892900a1d2291c643058b1f9166c5 (diff) |
Fix #3610
Diffstat (limited to 'system/libraries/Session/drivers/Session_files_driver.php')
-rw-r--r-- | system/libraries/Session/drivers/Session_files_driver.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php index 5852277e8..74528e9d2 100644 --- a/system/libraries/Session/drivers/Session_files_driver.php +++ b/system/libraries/Session/drivers/Session_files_driver.php @@ -299,7 +299,9 @@ class CI_Session_files_driver extends CI_Session_driver implements SessionHandle { if ($this->close()) { - return unlink($this->_file_path.$session_id) && $this->_cookie_destroy(); + return file_exists($this->_file_path.$session_id) + ? (unlink($this->_file_path.$session_id) && $this->_cookie_destroy()) + : TRUE; } elseif ($this->_file_path !== NULL) { |