Log the user out of the current zone.
After a successful logout the user is still connected to the server, but he/she has to login again into a zone, in order to be able to interact with the server.
After a successful logout the user is still connected to the server, but he/she has to login again into a zone, in order to be able to interact with the server.

C# | Visual Basic | Visual C++ |
public void Logout()
Public Sub Logout
public: void Logout()

Sends:
SFSEvent..::.OnLogoutDelegate
Since:
SmartFoxServer Pro v1.5.5
Version:
SmartFoxServer Basic / Pro

The following example shows how to logout from a zone.
CopyC#

SFSEvent.onLogout += OnLogout; smartFox.Logout(); public void OnLogout() { Debug.WriteLine("Logged out successfully"); }