PHP custom session handler - garbage collection time limit
Posted on 2006-04-09
I am considering writing my own custom session handling as I have certain specific requirements that would be perfectly met by having custom sessions.
I have reviewed several examples of custom handlers that are available in various places on the web. They are all very similar. But I have a question about garbage collection that seems to be common to all such examples. Specifically, the garbage collection routines destroy old sessions after either 5 minutes, or 24 minutes, typically.
I am wondering if this would not in many cases destroy sessions actively in progress. It seems like this time is very short, and so I am guessing that there must be some factor I am not aware of that makes these time limits reasonable.
Please comment on how this is really supposed to work.