Source for file logout.php
Documentation is available at logout.php
* @subpackage System.logout
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Plugin class for logout redirect handling.
* @subpackage System.logout
* Load the language file on instantiation.
* @param object The object to observe -- event dispatcher.
* @param object The configuration object for the plugin.
$cookie_domain =
$conf->get('config.cookie_domain', '');
$cookie_path =
$conf->get('config.cookie_path', '/');
setcookie($hash, false, time() -
86400, $cookie_path, $cookie_domain);
// Set the error handler for E_ALL to be the class handleError method.
* This method should handle any logout logic and report back to the subject
* @param array $user Holds the user data.
* @param array $options Array holding options (client, ...).
* @return boolean Always returns true
$cookie_domain =
$conf->get('config.cookie_domain', '');
$cookie_path =
$conf->get('config.cookie_path', '/');
setcookie($hash, true, time() +
86400, $cookie_path, $cookie_domain);
// Get the application object.
// Make sure the error is a 403 and we are in the frontend.
if ($error->getCode() ==
403 and $app->isSite())
// Redirect to the home page
$app->enqueueMessage(JText::_('PLG_SYSTEM_LOGOUT_REDIRECT'));
$app->redirect('index.php', true);
// Render the error page.
Documentation generated on Tue, 19 Nov 2013 15:07:28 +0100 by phpDocumentor 1.4.3