I am mostly using modx at this time in a CMF format. I recently realized after running out of disk space that the sessions where building but never getting cleared. I then also dialed down the gc_maxlife to 1hr because with the level of traffic I would run out of disk space in less than 7days (modx default setting).
However it is still after 2 days not cleaned any records out of session.
It is my understanding that this is all automatic and I can see in the code how it should choose to run gc each time a session is created during initialize().
I wonder if I am missing something and am currently speculating (along with MarkH) that somehow the session cleanup is tied into the handleRequest(), which of course I am not using.
If turns out that it is handleRequest() then we have a serious bug when working as a CMF.
My current traffic is recording approx 4GB of session data daily...
About to go write my own cron job to run every hour and do it own gc but would like to do it in modx as well as isolate a bug should it be one.
"One of these days I will get around to my own website... Its only been about 12 years... maybe tomorrow

"