IWebBrowserCookieManager::SetCookie

Sets a cookie given a valid URL.

Windows
MacOS
Linux

References

Module

WebBrowser

Header

/Engine/Source/Runtime/WebBrowser/Public/IWebBrowserCookieManager.h

Include

#include "IWebBrowserCookieManager.h"

Syntax

void SetCookie
(
    const FString & URL,
    const FCookie & Cookie,
    TFunction< void)> Completed
)

Remarks

Sets a cookie given a valid URL.

This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie Value field) and fail without setting the cookie if such characters are found.

Parameters

Parameter

Description

URL

The base URL to match when searching for cookies to remove. Use blank to match all URLs.

Cookie

The struct defining the state of the cookie to set

Completed

A callback function that will be invoked asynchronously on the game thread when the set is complete passing success bool.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss