[phplib] Garbage Collection From: Kartic Krishnamurthy (kaygee <email protected>)
Date: 05/25/00

Hello List,

I have a question on gc_probability and gc_time.

How do the older sessions get discarded using these variables? Do I need to explicitly call gc() to do garbage collection or is there some mechanism by which PHPLIB runs gc() during the lifetime of a session to remove older sessions? The reason I am asking this is that in my home network based utility that I wrote, old sessions seem to stick around till I clean it manually from the database.

Could someone please explain? Am I missing something?

Thank you,
--Kartic
PS: I also thought I needed to write a perl script and run it as a cron job to look for obsolete sessions (more than a day old) and knock 'em out.