public static function set($name, $value, $expire = 0, $path = null)
    {
        if ($path === null) {
            setcookie($name, $value, $expire);
        } else {
            setcookie($name, $value, $expire, $path);
        }
    }