public function logout()
    {
        Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));

        self::clearSession();

        $logoutUrl = @Config::getInstance()->General['login_logout_url'];
        if (empty($logoutUrl)) {
            Piwik::redirectToModule('CoreHome');
        } else {
            Url::redirectToUrl($logoutUrl);
        }
    }
public function logout()
    {
        Piwik::postEvent('Login.logout', array(Piwik::getCurrentUserLogin()));

        self::clearSession();

        $logoutUrl = @Config::getInstance()->General['login_logout_url'];
        if (empty($logoutUrl)) {
            Piwik::redirectToModule('CoreHome');
        } else {
            Url::redirectToUrl($logoutUrl);
        }
    }
public function logout ( ) { Piwik :: postEvent ( 'Login.logout' , array ( Piwik :: getCurrentUserLogin ( ) ) ) ; self :: clearSession ( ) ; $ logoutUrl = @ Config :: getInstance ( ) -> General [ 'login_logout_url' ] ; if ( empty ( $ logoutUrl ) ) { Piwik :: redirectToModule ( 'CoreHome' ) ; } else { Url :: redirectToUrl ( $ logoutUrl ) ; } }
Logout current user

@param none
@return void
Logout current user