title: Joomla! 3.xx *onUserLogout* event not working
body: <p>I have successfully implemented the <code>onUserAuthenticate</code> event to implement my custom authentication API inside the Joomla! site that I am working on.</p>
  
  <p>Now I want to also have some custom code run on the <code>onUserLogout</code> event. </p>
  
  <p>I have added the following code to the custom authentication plugin file.
  But this method is not getting fired/invoked while the previous one(<code>onUserAuthenticate</code>) is working just fine.</p>
  
  <pre><code>/**
   * Method to handle the SSO logout
   *
   * @param   array  $user     Holds the user data.
   * @param   array  $options  Array holding options (client, ...).
   *
   * @return  boolean  Always returns true.
   *
   * @since   1.6
   */
  public function onUserLogout($user, $options = array()) {
      if (JFactory::getApplication()-&gt;isSite()) {
          // Set the cookie to expired date.
          setcookie('customAuth', '123', time() - (60 * 60 * 24 * 365), '/', '.customdomain.org');
      }
      return true;
  }
  </code></pre>