From 456d0e65c5458ee7f7d9d6ec80f7a9f5885953fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Thu, 19 Oct 2017 11:33:52 +0200 Subject: [PATCH] fix(cookies): all cookies now last for a year --- app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 5cd245d..160b6e5 100644 --- a/app.js +++ b/app.js @@ -51,7 +51,7 @@ app.use(async function (req, res, next) { cda: delivery_access_token, cpa: preview_access_token } - res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true }) + res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true }) } // Allow enabling of editorial features via query parameters @@ -62,7 +62,7 @@ app.use(async function (req, res, next) { ...settings, editorialFeatures: true } - res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true }) + res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true }) } initClient(settings)