fix: Make the cookie last for a year
This commit is contained in:
committed by
Benedikt Rötsch
parent
c6d12b4afd
commit
9ddc4686d4
@@ -101,7 +101,7 @@ router.post('/', catchErrors(async function (req, res, next) {
|
||||
}
|
||||
|
||||
if (!errorList.length) {
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true })
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true })
|
||||
}
|
||||
|
||||
// Generate error dictionary
|
||||
|
||||
Reference in New Issue
Block a user