diff --git a/js/utils.js b/js/utils.js index 3b03ed0..bd2e677 100644 --- a/js/utils.js +++ b/js/utils.js @@ -1120,7 +1120,7 @@ function phpVirtualBoxFailure(msg) { * @param {Date} expire - when cookie should expire */ function vboxSetCookie(k,v,expire) { - var exp = (v ? (expire ? expire : new Date(2020,12,24)) : new Date().setDate(new Date().getDate() - 1)); + var exp = (v ? (expire ? expire : new Date(Date.now() + 7 * 1000 * 60 * 60 * 24)) : new Date().setDate(new Date().getDate() - 1)); document.cookie = k+"="+v+"; expires="+exp.toGMTString()+"; path=/"; $('#vboxPane').data('vboxCookies')[k] = v; }