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: 10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1    Statistic    FMM    Blog  

WebView.AllCookies

Returns all website cookies as JSON.

Component Version macOS Windows Linux Server iOS SDK
WebView 8.4 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "WebView.AllCookies"; WebViewerRef )   More

Parameters

Parameter Description Example
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.

Result

Returns OK or error.

Description

Returns all website cookies as JSON.
For WebKit 1.x, this returns global list of cookies.

For WebKit 2.x, this returns list of cookies associated to the web viewer, which may be a persistent list. For WebKit 2.x we need MacOS 10.13 or iOS 11.0 to work.

Examples

Get all cookies:

Set Field [ WebView SelectedText::Cookies ; MBS("Webview.AllCookies"; "web") ]

Example result:
[
  {
    "domain" : "www.filemaker.com",
    "secure" : false,
    "HTTPOnly" : false,
    "commentURL" : null,
    "portList" : [

    ],
    "expiresDate" : "2027-11-03 21:43:00 +0000",
    "value" : "192.123.25.13.123456789",
    "path" : "\/",
    "comment" : null,
    "name" : "fmi_cookie",
    "sessionOnly" : false
  }
]

See also

Release notes

Blog Entries

Created 11st August 2018, last changed 11st December 2020


WebView.AddUserScript - WebView.AllowsAnyHTTPSCertificateForHost

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins

Start Chat