From 83d81420452b2bf92fac014a8fdb681385bc8e47 Mon Sep 17 00:00:00 2001 From: "Cheng-Han, Wu" Date: Sun, 26 Jun 2016 23:37:59 +0800 Subject: [PATCH] Update to extend login info cookies to 365 days to reduce reductant page refresh --- public/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/common.js b/public/js/common.js index 7a2afdc5e..03a3ff9e9 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -28,11 +28,11 @@ function resetCheckAuth() { function setLoginState(bool, id) { Cookies.set('loginstate', bool, { - expires: 14 + expires: 365 }); if (id) { Cookies.set('userid', id, { - expires: 14 + expires: 365 }); } else { Cookies.remove('userid');