let sessionConf = session({
secret: CONFIGURE.SESSTION_SECRET,
store: new SessionStore({
host: CONFIGURE.DB_HOST,
port: CONFIGURE.DB_PORT,
user: CONFIGURE.DB_USERNAME,
password: CONFIGURE.DB_PASSWORD,
database: CONFIGURE.DB_DATABASE
}),
saveUninitialized: true,
resave: true,
cookie: { secure: true }
});
app.use(sessionConf);
可以保存json到session,但是取不到,
客户端cookie都没有是什么情况
这样就行了,不知道为什么,没去看源码