fix: Make the cookie last for a year

This commit is contained in:
Khaled Garbaya
2017-10-17 14:22:44 +02:00
committed by Benedikt Rötsch
parent c6d12b4afd
commit 9ddc4686d4

View File

@@ -101,7 +101,7 @@ router.post('/', catchErrors(async function (req, res, next) {
} }
if (!errorList.length) { if (!errorList.length) {
res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true }) res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true })
} }
// Generate error dictionary // Generate error dictionary