tried to extend login time

This commit is contained in:
Martin Donnelly 2020-07-21 12:10:50 +01:00
parent 7cffb03f31
commit 2b62e8a746

View File

@ -28,13 +28,14 @@ app.use(helmet());
app.use(session({
'secret': ['D9B168FF8674CC0D842E7639781C54527CD8645E4A723F3A2871781257CF8B73', '2024B214451504643D45DD762EE901D42CE64D3655F00A624BF3EDCE302EB5DD', '62FB68528722F3BB869AC9AAE07C535D97D513B0159FB9E4A6F3D69C005E82B3'],
'resave': true,
'saveUninitialized': true,
'cookie': {
'saveUninitialized': true
/* 'cookie': {
'httpOnly': true,
'secure': true,
'sameSite': true,
'maxAge': 2419200000 // Time is in miliseconds
}
}*/
}));
app.set('trust proxy', 1);