$expire, 'path' => '/', 'domain' => '', 'secure' => $secure, 'httponly' => true, 'samesite' => 'Lax' ); setcookie($key, $value, array_merge($defaults, $options)); } public static function remove($key) { unset($_COOKIE[$key]); self::set($key, '', -1); } public static function isEmpty($key) { return empty($_COOKIE[$key]); } }