Garbage Collection is automated Part of PHP. It analyzes any files in /tmp folder for any session files that have not been accessed in certain amount of time and physically deletes them. Garbage collection only runs in the default session directory (/tmp). It will ignore , if session is saved in different directory.