WordPress.org

Ready to get started?Download WordPress

Forums

Login once for all domains (2 posts)

  1. Aasim Hussain Khan
    Member
    Posted 7 months ago #

    Hi,

    I have 1 main site and 4 sub sites,

    example.com

    example.com/sub1/
    example.com/sub2/
    example.com/sub3/
    example.com/sub4/

    I am using the same database with different table
    prefixes. I have made all sub-sites to access same user table by

    define('CUSTOM_USER_TABLE', 'example_users');
    define('CUSTOM_USER_META_TABLE', 'example_usermeta');

    in wp-config.

    Now I want that if a user logins in any one of the site he

    must be logged-in in all other sites.

    How do I do that? Please help.

    I am using shared hosting on ipage.

  2. Anshu Verma
    Member
    Posted 5 months ago #

    Have tried looking at wordpress multisite? That should solve your problem.

Reply

You must log in to post.

About this Topic