UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IWebBrowserCookieManager Class Referenceabstract

#include <IWebBrowserCookieManager.h>

Public Types

typedef struct FWebBrowserCookie FCookie
 

Public Member Functions

virtual void SetCookie (const FString &URL, const FCookie &Cookie, TFunction< void(bool)> Completed=nullptr)=0
 
virtual void DeleteCookies (const FString &URL=TEXT(""), const FString &CookieName=TEXT(""), TFunction< void(int)> Completed=nullptr)=0
 

Member Typedef Documentation

◆ FCookie

Member Function Documentation

◆ DeleteCookies()

virtual void IWebBrowserCookieManager::DeleteCookies ( const FString &  URL = TEXT(""),
const FString &  CookieName = TEXT(""),
TFunction< void(int)>  Completed = nullptr 
)
pure virtual

Delete all browser cookies.

Removes all matching cookies. Leave both URL and CookieName blank to delete the entire cookie database. The actual deletion will be scheduled on the browser IO thread, so the operation may not have completed when the function returns.

Parameters
URLThe base URL to match when searching for cookies to remove. Use blank to match all URLs.
CookieNameThe name of the cookie to delete. If left unspecified, all cookies will be removed.
CompletedA callback function that will be invoked asynchronously on the game thread when the deletion is complete passing in the number of deleted objects.

◆ SetCookie()

virtual void IWebBrowserCookieManager::SetCookie ( const FString &  URL,
const FCookie Cookie,
TFunction< void(bool)>  Completed = nullptr 
)
pure virtual

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
URLThe base URL to match when searching for cookies to remove. Use blank to match all URLs.
CookieThe struct defining the state of the cookie to set
CompletedA callback function that will be invoked asynchronously on the game thread when the set is complete passing success bool.

The documentation for this class was generated from the following file: