Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  


Returns all website cookies as JSON.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Webview 8.4 Yes No No No Yes
MBS( "Webview.AllCookies"; WebViewerRef )   More


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


Returns OK or error.


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.


Get all cookies:

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

Example result:
"domain" : "",
"secure" : false,
"HTTPOnly" : false,
"commentURL" : null,
"portList" : [

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

See also

Example Databases

Blog Entries

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

Webview.AddScriptMessageHandler   -   Webview.ClearBrowserSession

Feedback: Report problem or ask question.

MBS Xojo Plugins