Forums

Keep users logged in over multiple blogs (9 posts)

  1. dh
    Member
    Posted 5 years ago #

    Hi,

    We've got 6 blogs all using the same user and user-meta tables. Each blog has it's own tables for everything else, so comments, pages and posts are specific to an individual blog.

    We're a school and have several blogs for different subjects, with one blog acting as the 'home' blog (which has links to the other blogs, and details of how to blog etc. only). have a look...

    What we want to do is let the user log in when they arrive at the first blog, then still be logged in when they go to a different blog. So that they can comment and post on different subject blogs without having to log in again. At the moment you have to log into every blog separately.

    Any ideas if this can be done, (sure it can) and how?

    Thanks very much.

    Dave

  2. MichaelH
    Volunteer
    Posted 5 years ago #

    See if you get some ideas from these threads:
    http://wordpress.org/search/sharing+users?forums=1

  3. dh
    Member
    Posted 5 years ago #

    thanks for that.
    http://wordpress.org/support/topic/73541?replies=16#post-560483

    Had a semi solution: adding this code to the wp-config file of secondary blogs:

    $public_cookiehash = md5('http://www.blogs.rhskids.org');
    define('USER_COOKIE', 'wordpressuser_'. $public_cookiehash);
    define('PASS_COOKIE', 'wordpresspass_'. $public_cookiehash);

    This only works though on one of our 'sub'-blogs, the first one we did it to. I've added the same code to the wp-config files of our other subject blogs and it doesn't work: the user still needs to log in again. Any ideas?

  4. MichaelH
    Volunteer
    Posted 5 years ago #

  5. dh
    Member
    Posted 5 years ago #

    nope, already read that one earlier .... surely someone's done this before?! :(

    thanks anyway

  6. dh
    Member
    Posted 5 years ago #

    anyone?

  7. dh
    Member
    Posted 5 years ago #

    bump

  8. markdw
    Member
    Posted 4 years ago #

    Can anyone help please?

  9. peiqinglong
    Member
    Posted 4 years ago #

    It might actually be worthwhile to consider moving to WordPress Mu. One of the cool features is integrated users, plus you can specify who has what permissions to what blogs.

    Here is an example: http://bui4ever.com is my main blog. Once a user or I have logged in, I can access (with whatever granted rights) to http://travels.bui4ever.com, my development site: http://sandbox.bui4ever.com.

    The beauty is that I don't have to keep installing a new copy of WordPress everytime I want another blog. Also upgrading is real simple...

    Consider visiting mu.wordpress.org for more.

Topic Closed

This topic has been closed to new replies.

About this Topic