How to use login() function in joomla?

  • You can use Below code during develop module and component with login functionality, get your username and password dynamically and put in array function.
  • when you call registration successfully function just add this code for autologin  functionality.
  $credentials = array( 'username' => '$name', 'password' => '$password');
    $login_site =& JFactory::getApplication('site');
    $login_site->login($credentials, $options=array());

8 thoughts on “How to use login() function in joomla?

  1. i m using bearstore theme in magento .i have faced a problem when i installed a ajax infinite scroll extention its not working and jquery conflict problem is raised .so plz tell me the effective solution.if you have anytype of script with load more products plz write code here…and when i uninstall go mage extention.its work …

    Like

Leave a comment