Joomla Plugin to fire onUserLogin

by Jason Pate   Last Updated June 04, 2016 08:04 AM

All, I have a simple plugin which does fire on login. I have the same plugin working in 2.5 but in my joomla 3.5 I cannot get it work get the username. This does work on Joomla 2.5

Here it is. Any help is greatly appreciated.

defined('_JEXEC') or die;
class PlgUserAddInfo extends JPlugin
    public function onUserLogin($user, $options = array())
        $user = JFactory::getUser();
        $mysignum = $user->username;
        $session = JFactory::getSession();
        $session->set('mysignum', $mysignum);
Tags : plugin joomla3.x

Related Questions

Plugin description translation

Updated June 30, 2018 12:10 PM

Virtuemart payment plugin override

Updated February 08, 2018 17:10 PM

Shortcut to insert non breaking space in TinyMCE?

Updated February 20, 2018 17:10 PM

Custom fields don't render plugin shortcode

Updated January 28, 2018 23:10 PM

How to remove rel="nofollow" with Joomla Buffer?

Updated May 28, 2017 04:10 AM