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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -