I am using cookieSession
to deal with session matters. No problem except when i restart the browser, my session doesn't persist. I wish sessions remain active every time and never expire.
Here is my setup
app.use(cookieSession({
name: 'xxxx',
keys: ['xxxxx', 'xxxx'],
cookie: { secure: true,
httpOnly: true,
domain: 'mydomain.com',
expires: 9999999999999999999999999999999999999999
}
})
);
Any suggestion ?