Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
11.4
11.5
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
Statistic
FMM
Blog
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
- Version 13.1
- Deprecated WebView.Cookies.Count and WebView.Cookies.Query in favor of WebView.AllCookies function.
Blog Entries
This function checks for a paid license.
Created 19th November 2014, last changed 23th February 2023
