getRandomKey()

Availability:

SmartFoxServer Pro

Usage:

smartFox.getRandomKey()

Description:

Gets a random string key from the server, also referred in this documentation as the "secret key".
This key is unique and valid for the current session only. It can be used to create a secure login system.
The response from the server is handled by the onRandomKey() method.

For more details please check the Secure Login tutorial.

Parameters:

none    

Returns:

Nothing.
Fires the onRandomKey() event

Example:

smartfox.getRandomKey()

For more details please check the Secure Login tutorial.

See also:

onRandomKey()