tried to extend login time
This commit is contained in:
parent
7cffb03f31
commit
2b62e8a746
@ -28,13 +28,14 @@ app.use(helmet());
|
|||||||
app.use(session({
|
app.use(session({
|
||||||
'secret': ['D9B168FF8674CC0D842E7639781C54527CD8645E4A723F3A2871781257CF8B73', '2024B214451504643D45DD762EE901D42CE64D3655F00A624BF3EDCE302EB5DD', '62FB68528722F3BB869AC9AAE07C535D97D513B0159FB9E4A6F3D69C005E82B3'],
|
'secret': ['D9B168FF8674CC0D842E7639781C54527CD8645E4A723F3A2871781257CF8B73', '2024B214451504643D45DD762EE901D42CE64D3655F00A624BF3EDCE302EB5DD', '62FB68528722F3BB869AC9AAE07C535D97D513B0159FB9E4A6F3D69C005E82B3'],
|
||||||
'resave': true,
|
'resave': true,
|
||||||
'saveUninitialized': true,
|
'saveUninitialized': true
|
||||||
'cookie': {
|
|
||||||
|
/* 'cookie': {
|
||||||
'httpOnly': true,
|
'httpOnly': true,
|
||||||
'secure': true,
|
'secure': true,
|
||||||
'sameSite': true,
|
'sameSite': true,
|
||||||
'maxAge': 2419200000 // Time is in miliseconds
|
'maxAge': 2419200000 // Time is in miliseconds
|
||||||
}
|
}*/
|
||||||
}));
|
}));
|
||||||
|
|
||||||
app.set('trust proxy', 1);
|
app.set('trust proxy', 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user