top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Garbage Collection in PHP?

+1 vote
346 views
What is Garbage Collection in PHP?
posted May 20, 2014 by Sachin Dahda

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

answer May 21, 2014 by Mohit Sharma
...