node.js - Express v4.0.0 does not include --sessions command or cmd but prior versions do -


Since I'm not familiar with the express, can someone tell me why v4.0.0 is not included - like session one Command?

This command is supported when I use version 3.4.8, but when I grab the latest version, I go into 2 issues:

    < Li> Express cmd has not been generated (I'm running Win8.1 x64) - That's why I had to set up the Express-Generator npm
  1. --sessions command There is no support for

I remember anything and was deliberately separated by the express team?

Connected middleware is no longer bundled with Express you will find yourself in Express 4.x in Sense Middleware Must have to install. For a decent guide to update updates.

  Install the% npm expression session  

then

  var session = requires ('Express session' );  

and replace

  app.it (express.session ());  

with

  app. Uses (session ({secret: 'keyboard cat', cookie: {max. Ed: 100000}}));  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -