lws: fix setcookie
This commit is contained in:
parent
0cc531a190
commit
56305c8e8d
@ -293,7 +293,7 @@ function setcookie_safe(...$args) {
|
|||||||
global $config;
|
global $config;
|
||||||
if (!headers_sent()) {
|
if (!headers_sent()) {
|
||||||
if (count($args) == 2)
|
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
|
else
|
||||||
setcookie(...$args);
|
setcookie(...$args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user