diff options
author | Cheng-Han, Wu | 2016-06-26 23:37:59 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-26 23:37:59 +0800 |
commit | 83d81420452b2bf92fac014a8fdb681385bc8e47 (patch) | |
tree | e202ba63f785cf0d0ac994387ed3b5e6b0142417 /public | |
parent | 65b91e0b66b0d92d990f5fb51a28ed6c0f12e6bf (diff) |
Update to extend login info cookies to 365 days to reduce reductant page refresh
Diffstat (limited to '')
-rw-r--r-- | public/js/common.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/common.js b/public/js/common.js index 7a2afdc5..03a3ff9e 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'); |