System.Logout
-------------

Logout current user.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [System](component_System.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "System.Logout" ) ### Parameters

none

### Result

Returns OK or error number.

### Description

Logout current user.  
It is possible that user or other application stops the logout process.  
Operation will run asynchronously. The function returns immediately and logout process starts a second later.  
### Example Databases

- [Utility functions/Shutdown](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Shutdown.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr4](https://www.mbsplugins.de/archive/2013-03-18/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 21st May 2018

  
[SyntaxColoring.ZoomButton.SetEnabled](SyntaxColoringZoomButtonSetEnabled.md) - [System.Restart](SystemRestart.md)

[HTML Version](SystemLogout.shtml)