]> granicus.if.org Git - php/commitdiff
Use mtime instead of atime, as we always update the session file anyway.
authorZeev Suraski <zeev@php.net>
Sat, 17 Aug 2002 20:32:26 +0000 (20:32 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 17 Aug 2002 20:32:26 +0000 (20:32 +0000)
ext/session/mod_files.c

index 95db098095ea015823619c8090252966a525af6d..193501a50b83b61c93b2e3b82f994dd194bec6ff 100644 (file)
@@ -202,7 +202,7 @@ static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC)
                                buf[dirname_len + entry_len + 1] = '\0';
                                /* check whether its last access was more than maxlifet ago */
                                if (VCWD_STAT(buf, &sbuf) == 0 && 
-                                               (now - sbuf.st_atime) > maxlifetime) {
+                                               (now - sbuf.st_mtime) > maxlifetime) {
                                        VCWD_UNLINK(buf);
                                        nrdels++;
                                }