Closed Sunshine168 closed 7 years ago
hi i use in koa2 following
const session = require('koa-session-store'); app.use(convert(session({ name: config.session.key, secret: config.session.secret, resave: true, saveUninitialized: false, cookie: { maxAge: config.session.maxAge }, store: mongoStore.create({ mongoose: mongoose.connection }) })));
in init koa2
And
ctx.session.user = user ; // store in session
console.log(ctx.session)// in my controller ,show {}
i check the cookies did not see the cookies for my application . i need help ~ thankful!!
well i got the problem ourrurs in my middlewares ~ may be after finding the problem update this issus
Glad to hear it.
hi i use in koa2 following
in init koa2
And
i check the cookies did not see the cookies for my application . i need help ~ thankful!!