diff --git a/www/include/lib_login.php b/www/include/lib_login.php index 8202042..855ea56 100644 --- a/www/include/lib_login.php +++ b/www/include/lib_login.php @@ -119,7 +119,7 @@ function login_get_cookie($name){ ################################################################# function login_set_cookie($name, $value, $expire=0, $path='/'){ - $domain = ($GLOBALS['cfg']['environment'] == 'localhost') ? false : $GLOBALS['cfg']['auth_cookie_domain']; + $domain = ($GLOBALS['cfg']['auth_cookie_domain'] == 'localhost') ? false : $GLOBALS['cfg']['auth_cookie_domain']; $securify = (($GLOBALS['cfg']['auth_cookie_require_https']) && (isset($_SERVER['HTTPS'])) && ($_SERVER['HTTPS'] == 'on')) ? 1 : 0; $res = setcookie($name, $value, $expire, $path, $domain, $securify); }