2nd Wordpress Plugin not logging in wordpress account

Discussion in 'Integration' started by alanmant, Dec 22, 2015.

  1. alanmant

    alanmant New Member

    Joined:
    Dec 22, 2015
    Messages:
    2
    Hi,

    I am experiencing problems relating the process of linking two wordpress with aMember. I have followed the steps in https://www.amember.com/docs/How_to_link_aMember_to_different_wordpress_blogs
    Everything seems to be working except for the session login in the wordpress end of the second site.

    Let's say we have site A and B, with wordpress plugins WA and WB. I've set up both plugins with the information requested. Let's say the user U1 logs in correctly in aMember using site B but Wordpress is not recognizing it as a logged in user (I've made sure that this user exists in both A and B Wordpress installations). So the user who tried to login using site B has aMember session but not a Wordpress session. This results in some unexpected problems like pages being cached for logged-in users (which is not desirable for us).

    What can I do to fix this? Thank you!
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,659
    Unfortunately single login does not work across different domains (due to http cookie nature).

    In event of you installed both WP on same domain and single login still does not work then please contact us in heldpesk (https://www.amember.com/support) we will troubleshoot this issue.
  3. alanmant

    alanmant New Member

    Joined:
    Dec 22, 2015
    Messages:
    2
    Thank you for your fast reply!

    I see. We are currently using different domains. So, if I understood it correctly, aMember only sets a cookie with the corresponding session instead of using wordpress API to login remotely to the other site, is this correct? Is there any possible workaround for logging in remotely from the other domain?

    If it is not possible we might consider using subdomains. I understand it should work in this case?
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,659
    Yes, I recommend to use subdomains.

Share This Page