Closed gmhafiz closed 9 months ago
If you have a custom store implementation that satisfies CtxStore
, you can set it to SessionManager.Store
and it will call the FindCtx
, CommitCtx
and DeleteCtx
methods as necessary. There's no need to introduce another field to the SessionManager struct.
Right now only
Store
interface is exposed but notCtxStore
. This means custom implementation on context-based methods are not possiblePR: https://github.com/alexedwards/scs/pull/165