From 9ddc4686d48d8fa764df029a997e5f57d6720e81 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Tue, 17 Oct 2017 14:22:44 +0200 Subject: [PATCH] fix: Make the cookie last for a year --- routes/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/settings.js b/routes/settings.js index e3cdfe6..53fb7b4 100644 --- a/routes/settings.js +++ b/routes/settings.js @@ -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