I am thinking of using the "atime" (last access time in seconds since the epoch) value returned by stat($filename) to find files (session ids created by my program) that have not been accessed in 24 hours and delete them. But before I do this I thought I would ask if there was a better way than itterating over all the files in a folder (could be 1000's of