Title: Set WP User data from external database
Last modified: August 21, 2016

---

# Set WP User data from external database

 *  [nxnla](https://wordpress.org/support/users/nxnla/)
 * (@nxnla)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/set-wp-user-data-from-external-database/)
 * My problem – I want the WP-POLLS plugin to have access to my site’s user info
   from an external database without having to import all the external database 
   user into the WP database.
 * I have my site’s users login with a separate login function (not WP’s login).
 * What I am experiencing is all the users who complete a poll on WP-POLLS plugin
   all are logged as Guest and I want their first and last names to be logged instead–
   and that is info I have in the users’ session variables during their visit to
   the site.
 * How do I populate the WP_USER object with the variables from the user session?

The topic ‘Set WP User data from external database’ is closed to new replies.

## Tags

 * [external database](https://wordpress.org/support/topic-tag/external-database/)
 * [session variables](https://wordpress.org/support/topic-tag/session-variables/)
 * [wp_user](https://wordpress.org/support/topic-tag/wp_user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [nxnla](https://wordpress.org/support/users/nxnla/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/set-wp-user-data-from-external-database/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
