- Issue created by @catch
Found in π Implement lazy database creation for sessions Active .
SessionManager::delete() directly queries the sesssions table, but the session handler is swappable, so if you don't use database sessions, it's going to run a query on an empty table.
I think we could implement a new interface on SessionHandler, something like 'DeleteByUserIdSessionInterface' with a ::deleteByUserId($uid) method, then check that interface and call the method instead from SessionManager.
That way alternative session implementations will actually be able to delete all sessions for a user too if they're able to.
Active
11.0 π₯
Last updated