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());
Advertisements

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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s