Where is Session ContainerPersistenceInterface?

I was looking at the mezzio-session docs and noticed this part about using SessionContainerPersistenceInterface to handle session expiry in custom persistence backends. However, I can’t find any information about SessionContainerPersistenceInterface other than what is present on the page itself. I don’t see any usages of this interface anywhere, and I don’t see any definition of the interface in the project’s code.

Am I missing something? Is the persistence implementation supposed to create this interface in its own codebase?

Hello and welcome to our forums! :smiley:

Very confusing because the documentation was added for this interface but no code:

Please check Mezzio\Session\SessionCookiePersistenceInterface instead:

I will fix the problem in the documentation.

Thank you for bringing up this topic! :+1:t2:

1 Like

Thank you so much for responding this quickly! Yeah, session cookies seem to be the interface I should be using.