Okay, let me start by apologizing if this has been asked 100 times before.
I have a custome ecommerce program that is storing various data in session. The problem that we are having is that every now and then a customer's session information is lost while they are using the site. I currently have session.gc_maxlifetime set to 28800. However, from what I've been able to gather from random internet posts, all this does is indicate that the garbage collection routine can run as long as there is a session file that is at least 8 hours old (whether or not it actually runs depends on the probability that is set). Is that correct?
If it is, then that's where my problem lies. This application is (obviously) being used constantly throughout the day. This means that it is more than likely that there will eventually be session files that are at least 8 hours old. As a result, the 8-hours-old session file could trigger a garbage collection which would delete a brand new session file that I don't want to be deleted. I have tried storing each session file in its own folder so that they don't all get grabbed by the global GC, but all that does is create a new folder each time I hit a call to session_start(), thereby not maintaining any session persistance.
If anyone knows a way to make it so that only session files that are older than a specified age are deleted by the GC, it would be GREATLY appreciated if you share that info with me. Much thanks in advance.