summaryrefslogtreecommitdiff
path: root/localwebsite/functions.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-04 00:32:36 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-04 00:32:36 +0300
commit56305c8e8d217cd22224cfeb688c1d6fc2737269 (patch)
tree312ad26d5b60674315e7f7d5d104ec5d94d0fa70 /localwebsite/functions.php
parent0cc531a1907337ddca38ff2824b89bb3d226e24b (diff)
lws: fix setcookie
Diffstat (limited to 'localwebsite/functions.php')
-rw-r--r--localwebsite/functions.php2
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);
}