LiveUser::setLogoutFunction()

LiveUser::setLogoutFunction() -- Sets a callback logout function.

Synopsis

require_once 'LiveUser.php';

mixed LiveUser::setLogoutFunction (string $functionName)

Description

The user can set a function that will be called if the user wants to logout (by providing the appropriate GET-parameter). If an empty string or a non-existent function is passed it deactivates the call. Attention: Don't use a die() or exit() statement in your logout function. Otherwise the user can't be logged out properly.

Parameter

string $functionName

The name of the function to be called.

Return value

returns void or a PEAR_Error

Throws

throws no exceptions thrown

See

see LiveUser::_options

Note

This function can not be called statically.