问题 This simple example is not working. In every request the session is created again, I don't know how to solve it. var express = require('express'), expressSession = require('express-session'), app = express(); app.use(expressSession({ secret:'secret', resave:true, saveUninitialized:true, cookie:{ httpOnly:false, expires:false } })); app.all('/',function(req,res,next){ var session = req.session; if(session.count){ session.count++; } else{ session.count = 1; } console.log('id:',req.sessionID);