public static function set($key, $value = '', $time = 0, $path = '/', $domain = '', $secure = FALSE, $httponly = FALSE) {
        return setcookie($key, self::encode($value), time() + $time, $path, $domain, $secure, $httponly);
    }