I am using express-session like below with redis. This used to work but now even after authentication succeeds and I can see the session created there is no cookie created on browser. app.use( session({ store: new RedisStore({ client: redis as any }), name: process.env.COOKIE_NAME, secret: process.env.SECRET, resave: false, saveUninitialized: false, cookie: { httpOnly: true, secure: false, maxAge: 1000 * 60 * 60 * 24 * 180, domain: "127.0.0.1:4000" } } as any) );
Submitted July 17, 2019 at 12:09AM by rustproj
No comments:
Post a Comment