public function set_Cookie($name, $value = '', $expire = 0, $encode = true)
{
if (is_array($value)) {
return false;
}
if (empty($name)) {
return false;
}
$name = $this->cookie_prefix . '_' . $name;
if ($encode) {
$value = $this->encodeCookie($value);
}
$expire = intval($expire);
if (!empty($expire)) {
$expire += NV_CURRENTTIME;
}
return setcookie($name, $value, $expire, $this->cookie_path, $this->cookie_domain, $this->secure, $this->httponly);
}