app.use(express.cookieParser()); app.use(express.session({secret:config.session_secret}));
然后在controller中req.session.name="xx"; 却提示找不到name。怎么回事呢?
6 回复
app.use(express.cookieParser()); app.use(express.session({secret:config.session_secret}));
然后在controller中req.session.name="xx"; 却提示找不到name。怎么回事呢?