According to the documentation, we use the DI in the middleware to create sessions. This results in empty sessions being created. Since i am creating an admin portal, I want to avoid empty sessions at all costs. I am using the database adapter and do not want empty sessions stored in the DB.
I would prefer to only start a session once a user is authenticated. What would be the best way to achieve this.