Skip to content
Frug edited this page Oct 11, 2012 · 1 revision

How to redirect the user to a custom URL on logout

By default, the JavaScript method ajaxChat.handleLogout(url) takes an URL as parameter and redirects the user there.

The URL given to ajaxChat.handleLogout(url) can be set on server-side in lib/config.php:

// Argument that is given to the handleLogout JavaScript method:
$config['logoutData'] = 'http://example.org';