logout()

Availability:

Flash Player 7, 8
SmartFoxServer Basic / Pro (1.5.5 and later)

Usage:

smartFox.logout()

Description:

Logout the user from the current Zone.
The client will still be connected to the server but he will have to login again in a Zone, in order to interact with the server.

Parameters:

none    

Returns:

nothing

Example:

smartFox.logout()


/*
* The server will send us an event after the logout is performed
*/
smartFox.onLogout = function()
{
	trace("I was logged out successfully")
}

See also:

onLogout()