Title: user log in
Last modified: August 19, 2016

---

# user log in

 *  [animasola](https://wordpress.org/support/users/animasola/)
 * (@animasola)
 * [17 years ago](https://wordpress.org/support/topic/user-log-in/)
 * Hi,
 * What I did is have the authentication process elsewhere, in a main system. WordPress
   is to be a blog module for a bigger system. What else do I need so that the user
   will be authenticated into the WordPress system?
 * So far, here are what I used, give that there already is a $user:
 * wp_set_auth_cookie($user->ID, false);
    do_action(‘wp_login’, $user->user_login);
   redirect(‘[http://localhost.localdomain/mublog/wp-admin/&#8217](http://localhost.localdomain/mublog/wp-admin/&#8217););
 * what else do i need? once i redirect it, it returns me to the wordpress authentication
   page.
 * Any piece of advice would be greatly appreciated, thanks! 🙂

The topic ‘user log in’ is closed to new replies.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * 0 replies
 * 1 participant
 * Last reply from: [animasola](https://wordpress.org/support/users/animasola/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/user-log-in/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
