Pitfalls • req.ﬂash - https://github.com/visionmedia/express/ wiki/Migrating-from-2.x-to-3.x • connect-ﬂash • DB for session management • Redis - http://stackoverﬂow.com/questions/ 12947965/nodejs-passport-js-redis-how-to- store-sessions-in-redis?lq=1 • MongoDBThursday, January 17, 13
Pitfalls (continued) • Order of conﬁguration • The order that you pass things to app.use determines the order in which each middleware is given the opportunity to process a request. • place app.use(...static) at the top in order to avoid parsing and authenticating them through passport.Thursday, January 17, 13
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.