flash icon indicating copy to clipboard operation
flash copied to clipboard

the flash session not to be expired

Open alsemany opened this issue 8 years ago • 3 comments

Hello, I have this session

app.use(session({ secret: 'changeme' , cookie: { secure: false,  maxAge: new Date(Date.now() + 3600000), } , resave:false, saveUninitialized:false, store: new SkinStore(db)  }));

when using flash it will stuck on the session and not to be expired ! should I destory the flash session manually

alsemany avatar Aug 09 '15 05:08 alsemany

+1

carloscarcamo avatar Jan 25 '16 18:01 carloscarcamo

I don't often use flash so I cannot help beyond this: maxAge should be an integer in milliseconds, not a date. https://github.com/expressjs/session#cookiemaxage

jordonias avatar Jan 25 '16 20:01 jordonias

+1

VictorioBerra avatar Feb 10 '16 04:02 VictorioBerra