summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-10-26 10:57:20 +0100
committerAndrey Andreev <narf@devilix.net>2014-10-26 10:57:20 +0100
commitc5519ce166943b744bbea75a87831132aced4247 (patch)
treec0e6ee3d98928e5b13bb2e9097502ee43f7745e1 /system/libraries/Session/drivers
parent6612b6728084e5ca85bdd5f4183769946b1ae713 (diff)
#3073 (feature/session): Fix a GC issue with the files driver
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r--system/libraries/Session/drivers/Session_files_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php
index a4f1b9f2f..ff1553f84 100644
--- a/system/libraries/Session/drivers/Session_files_driver.php
+++ b/system/libraries/Session/drivers/Session_files_driver.php
@@ -261,7 +261,7 @@ class CI_Session_files_driver extends CI_Session_driver implements SessionHandle
// If the filename doesn't match this pattern, it's either not a session file or is not ours
if ( ! preg_match('/(?:[0-9a-f]{32})?[0-9a-f]{40}$/i', $file)
OR ! is_file($this->_config['save_path'].DIRECTORY_SEPARATOR.$file)
- OR ($mtime = filemtime($this->_config['save_path'].DIRECTORY_SEPARATOR.$file)) === FALSE
+ OR ($mtime = fileatime($this->_config['save_path'].DIRECTORY_SEPARATOR.$file)) === FALSE
OR $mtime > $ts)
{
continue;