I am trying to get some certain action done once the user is successfully logged in and i am wondering where could be the right place to get this done.
Should i create or edit user plugin and write the logic in onLoginUser() function? If so, where do i import the plugin and fire the appropriate event.
Thanks
The best place is, of course, to write the logic into the plugin. That way you’re insulated from any code changes that Joomla or VM upgrades would overwrite, as well as giving you full control over what’s happening.
I’m pretty sure that Joomla installs an example.php and xml file in the plugins\user folder, which you can clone and modify. Just be sure to have an entry in the joomla plugins table, so that Joomla knows it exists, and allows you to configure through the administrator pages.