node.js - TypeError('app.use() requires middleware functions') in session in express js -


while using session in express js, getting following error.

app.use(cookieparser()); app.use(session({secret:'xyz'}));  typeerror: app.use() requires middleware functions @ eventemitter.use (d:\lms-node\node_modules\express\lib\application.js:210:11) 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -