

Hello,
I have searched for examples about how to use database-stored sessions in Fat-Free.
I have everything working well except a detail. All the examples I have found, tell the way to destroy a session is to call:
$f3->clear('SESSION');
Now, this clears the serialized session variables in the relevant database row. However I want to actually delete the session record, not just clear one field of it.
Is there a Fat-Free built-in way to do that?
Demo:
Attached picture 1: Created session: notice the us_Dati field (the serialized data) being present.
Attached picture 2: Cleared session: notice the database row is still there, just with the us_Dati field cleared and nothing more.
If I call the session creation function again, it reuses the current session ID and fills in the serialized data (which is very OK to me).
Another question: is PHP going to call the cleanup() function by itself, so that the database gets periodically cleaned up?
If so, which criterium is used? I am asking this, because I am using
Ubuntu, which massively messes with PHP's sessions garbage cleanup and sets:
session.gc_probability = 0
So, I might risk getting some ever growing sessions database with no way to clean it up.
Best regards,
Dario Fumagalli