Express + Passport + Session. Executes a query for every page load
问题 I'm using Express 4.2.0 with passport 0.2.0. The express-session middleware that I am using is 1.2.1 I'm relatively new to node authentication so please bear with me. I noticed that for everyone page load, passport is executing a db request: Executing (default): SELECT * FROM "users" WHERE "users"."user_id"=7 LIMIT 1; This doesn't make sense to me as I would think that the user has already been authenticated and serialized. And the session is now stored in the browser cookie. I also checked