diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-04 00:32:36 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-04 00:32:36 +0300 |
commit | 56305c8e8d217cd22224cfeb688c1d6fc2737269 (patch) | |
tree | 312ad26d5b60674315e7f7d5d104ec5d94d0fa70 | |
parent | 0cc531a1907337ddca38ff2824b89bb3d226e24b (diff) |
lws: fix setcookie
-rw-r--r-- | localwebsite/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/localwebsite/functions.php b/localwebsite/functions.php index 4693fc5..6868b0d 100644 --- a/localwebsite/functions.php +++ b/localwebsite/functions.php @@ -293,7 +293,7 @@ function setcookie_safe(...$args) { global $config; if (!headers_sent()) { if (count($args) == 2) - setcookie($args[0], $args[1], time()+86400+365, '/', $config['auth_cookie_host']); + setcookie($args[0], $args[1], time()+86400*365, '/', $config['auth_cookie_host']); else setcookie(...$args); } |