Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WebView.Cookies.Query

Queries a property of a cookie.

Component Version macOS Windows Linux Server iOS SDK
WebView 5.0 ✅ Yes ❌ No ❌ No ❌ No ❌ No

Deprecated

This function was deprecated. Use WebView.AllCookies instead.

MBS( "WebView.Cookies.Query"; Index; Selector; URL )   More

Parameters

Parameter Description Example
Index The index of the cookie from 0 to WebView.Cookies.Count-1.
Selector Which value to query. Can be path, name, value, expiresDate, SessionOnly, domain, Secure, HTTPOnly, comment, commentURL, version or portList. "Name"
URL The target URL of the website to use. "http://www.mbsplugins.de"

Result

Returns value or error.

Description

Queries a property of a cookie.

For WebKit 1.x, so only for web viewers created in FileMaker 15 or older or web viewers created with WebView.Create function.
URL should have https:// prefix if this is for SSL.

Examples

Get a cookie for a domain:

MBS( "WebView.Cookies.Query"; $index; "Name"; "https://xing.com" )

See also

Release notes

Blog Entries

This function checks for a license.

Created 19th November 2014, last changed 23th February 2023


WebView.Cookies.Count - WebView.Copy

💬 Ask a question or report a problem