Submitted by Dmitro on Fri, 22/09/2023 - 16:12 Without other modules:$uid = 777; $form_state = array(); $form_state['uid'] = $uid; user_login_submit(array(), $form_state); drupal7