Flush Web Viewer Cookies
Immediately flushes all web viewer cookies used in the FileMaker client.
See also
Options
None.
Compatibility
| Product | Supported |
| FileMaker Pro | Yes |
| FileMaker Go | Yes |
| FileMaker WebDirect | No |
| FileMaker Server | No |
| FileMaker Cloud | No |
| FileMaker Data API | No |
| Custom Web Publishing | No |
Originated in version
26.0
Description
This script step immediately clears all cookies and session data stored by web viewers in all open FileMaker Pro files, not just the current file or a specific web viewer object. In FileMaker clients, web viewers share cookies at the application level. This means that if a user signs in to a web service (like email or cloud storage) in a web viewer in one file, that authenticated session persists across all files and all FileMaker user accounts on the same device.
Use this script step primarily for security and privacy scenarios where users need to clear authenticated sessions, such as in shared device environments or when switching between different user accounts.
Notes
-
Cookies are permanently removed with no undo capability. Users may need to re-authenticate to web services after execution.
-
This script step may be particularly useful when the FileMaker client can't be restarted (for example, in Single App Mode on iOS and iPadOS).
Example 1
Clears all web viewer cookies before prompting the next FileMaker user to sign in, preventing them from accessing the previous user's authenticated web sessions.
Flush Web Viewer Cookies
Re-Login [ With dialog: On ; Current File ]
Example 2
When a user needs to switch accounts in a web-based service displayed in a web viewer with the object name WebViewer_OAuth, flushes cookies to force the web service to prompt for new credentials.
Flush Web Viewer Cookies
Refresh Object [ Object Name: "WebViewer_OAuth" ; Repetition: 1 ]
Example 3
Provides users with a way to manually clear all web viewer session data for privacy or compliance requirements.
Show Custom Dialog [ "Clear Session Data?" ; "This will sign you out of all web services in web viewers." ]
If [ Get ( LastMessageChoice ) = 1 ]
Flush Web Viewer Cookies
Show Custom Dialog [ "Session Cleared" ; "All web viewer sessions have been cleared." ]
End If