Skip to content

Commit 83d8142

Browse files
committed
Update to extend login info cookies to 365 days to reduce reductant page refresh
1 parent 65b91e0 commit 83d8142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ function resetCheckAuth() {
2828

2929
function setLoginState(bool, id) {
3030
Cookies.set('loginstate', bool, {
31-
expires: 14
31+
expires: 365
3232
});
3333
if (id) {
3434
Cookies.set('userid', id, {
35-
expires: 14
35+
expires: 365
3636
});
3737
} else {
3838
Cookies.remove('userid');

0 commit comments

Comments
 (0)