Table of Contents

TTMSFNCWebBrowserCookie Record

Holds the attributes of a browser HTTP cookie.

API unit family: TMSFNCWebBrowser

Syntax

TTMSFNCWebBrowserCookie = record

Remarks

Pass this record to TTMSFNCCustomWebBrowser.AddCookie to set a cookie, or read it from the array received in OnGetCookies.

Fields and properties

Name Type Description
Domain string Domain to which this cookie is scoped.
Expires TDateTime Expiry date and time; use 0 for a session cookie.
HTTPOnly Boolean When True, the cookie is inaccessible to JavaScript via document.cookie.
Name string Cookie name.
Path string URL path to which this cookie applies.
SameSite TTMSFNCWebBrowserSameSiteType SameSite restriction applied to cross-site requests. See TTMSFNCWebBrowserSameSiteType.
Secure Boolean When True, the cookie is transmitted only over HTTPS connections.
Session Boolean When True, the cookie is a session cookie that expires when the browser session ends.
Value string Cookie value string.