Hey @madjax, garbage collection is working, but it’s configured with a 30 day TTL. In that time, we accumulate over 300k empty sessions. We’re using a memcache session store in php.ini, so these empty sessions just waste memory. I recently ran a job that cleared out these empty sessions, but then I realized that I’m breaking your plugin since session_start()
will generate a new session/cookie if it is not found in memcache.
I think using your own cookie with wp-admin configurable options, or piggy-backing on WooCommerce’s internal cart/session should be a better approach.