Thanks Kyle for your inputs. It is working on my local system too but not on the media temple dedicated server. The plug-in is published only. I further performed some code debugging through netbeans and print_r and I found that some issue in below user login code as that is causing non execution of the after login trigger. The login function further calls multiple files for joomla authentication and it is becoming difficult to debug.
file:..\administrator\components\com_comprofiler\library\cb\cb.authentication.php
Code:
if ( ! $loggedIn ) {
$_CB_framework->login( $username, $password, $rememberMe );
$loggedIn = true;
}
//The below line is not getting executed as $_CB_framework->login() is not coming out
//
$_PLUGINS->trigger( 'onAfterLogin', array( &$row, $loggedIn ) );
anything after below line is not getting executed
$_CB_framework->login( $username, $password, $rememberMe );
Regards,
Amit