Title: Question on sharing users
Last modified: August 19, 2016

---

# Question on sharing users

 *  [hauolinaaupono](https://wordpress.org/support/users/hauolinaaupono/)
 * (@hauolinaaupono)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/)
 * I have developed a site for my boss. It’s located at [http://www.ralphmoorehawaii.com](http://www.ralphmoorehawaii.com).
   I’ve installed 3 wordpress blogs on this site. One to use as a blog, another 
   to use to categorize articles, and another for book reviews. We want to allow
   people to comment on posts, but we want them to register first. Is there a way
   that all 3 blogs can share the same users so that one only needs to sign-up in
   one area to be able to post in all areas?
 * Thanks for your help on this.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [educationthemes](https://wordpress.org/support/users/educationthemes/)
 * (@educationthemes)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839586)
 * To share user data across multiple installtions of WordPress you need to use 
   the same database as affix different table prefizes in wp-config.php for each
   blog or install.
 * Then you need to add these lines of code to the wordpress installs that are NOT
   your main install (i.e. on the ones that are the addons if you like and where
   people WON’T register).
 *     ```
       define('CUSTOM_USER_TABLE', $table_prefix.'my_users');
       define('CUSTOM_USER_META_TABLE', $table_prefix.'my_usermeta');
       ```
   
 * Change the words my_users and my_usermeta to whatever the table prefixes are 
   in the main install (i.e. the one were everybody registers).
 * If you want to make sure that users are kept logged in to all installs when they
   have logged into the main site then add this code underneath the above code:
 *     ```
       $public_cookiehash = md5('http://www.ralphmoorehawaii.com/');
       define('USER_COOKIE', 'wordpressuser_'. $public_cookiehash);
       define('PASS_COOKIE', 'wordpresspass_'. $public_cookiehash);
       ```
   
 * Replace the URL with the url of your main install. Hope that helps.
 *  Thread Starter [hauolinaaupono](https://wordpress.org/support/users/hauolinaaupono/)
 * (@hauolinaaupono)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839602)
 * I’m not that brilliant when it comes to php or databases. Can you explain in 
   a little more detail, or can I even inquire about hiring someone to do this?
 *  [educationthemes](https://wordpress.org/support/users/educationthemes/)
 * (@educationthemes)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839654)
 * To hire someone you need to leave contact details.
 *  Thread Starter [hauolinaaupono](https://wordpress.org/support/users/hauolinaaupono/)
 * (@hauolinaaupono)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839658)
 * Markis
    [markiss@hopechapel.com](https://wordpress.org/support/topic/question-on-sharing-users/markiss@hopechapel.com?output_format=md)
   808-781-9733 Hawaii Time, so please check time before you call.
 *  [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839768)
 * This was really easy! Perfect!
 * Thank you eduthemes!
 *  [vurea](https://wordpress.org/support/users/vurea/)
 * (@vurea)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839867)
 * this doesn’t seem like its working for 2.6.2 .

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Question on sharing users’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [vurea](https://wordpress.org/support/users/vurea/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/question-on-sharing-users/#post-839867)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
