I’m playing around with keeping sessions in the database and I’m new to this. The method in ZF makes it create id’s in the database beautifully, however I don’t see the database deleting any sessions once they’re made, even though I’m setting the lifetime to 20 seconds.
Is the database supposed to delete them itself, or is it up to me? or is it a setup I must do? Thank you!
it looks like the
destroy()method ofZend_Session_SaveHandler_dbTablemight be what you’re looking for assuming you’re usingZend_Session_SaveHandler_dbTableto save your sessions.Here is the method definition: