Automatic Login after Successful Registration Is there any way to automatic login user after a successful registration, it seems I can't find any tuts/solution how to do this.Thanks!!

Any replies are much appreciated....

in my template.php

function drupal_onrevue1_form_user_register_submit($form, &amp;$form_state){

    //$form_state['rebuild'] = TRUE;
    $form_state['redirect'] = "user/login";
    //print_r($form_state);die();
   $edit = array(
          'name' =&gt; $form_state['values']['name'], 
          'pass' =&gt; $form_state['values']['current_pass'],
          'field_first_name' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_first_name']))),
          'field_last_name' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_last_name']))),
          'field_middle_name' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_middle_name']))),
          'field_year_select' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_year_select']))),
          'field_month_select' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_month_select']))),
          'field_date_select' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_date_select']))),
          'field_gender' =&gt; array(LANGUAGE_NONE =&gt; array(array('value' =&gt; $form_state['values']['field_gender_select']))),
          'mail' =&gt; $form_state['values']['field_mail'],
          'init' =&gt; $form_state['values']['field_mail'], 
          'status' =&gt; 1, 
          'access' =&gt; REQUEST_TIME,
    );

    $account-&gt;is_new = TRUE;
    $hello = user_save($account, $edit);
    //print_r($hello);die();

}
Have a look at the Logintoboggan module. This offers you to login new users immediately.