Login widget doesn't think we're logged in but WP does

Discussion in 'aMember Pro v.4' started by gcornelisse, Feb 19, 2013.

  1. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    We recently upgraded from am3 to am4 and went with the amember widget included with am4 to show a login form. We can login, but the login form still shows when we're returned back to the page we logged in from instead of our subscription links etc. Its a little odd because wordpress seems to know we're logged in. Could it be a cookie issue because we're running amember on a separate sub domain?

    For example:
    http://members.example.com (amember)
    http://example.com (wordpress)

    We did this because the instructions for a wordpress install discourage putting amember in the root of the wordpress website install.

    Thanks,
    Gary
  2. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    Maybe it isn't a cookie issue. I just inspected the cookies and noticed the same hashes on both domains. I'm not sure what else it could be.
  3. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    I found that moving amember into the primary domain as a sub directory fixed the issue.
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This is 100 % session cookie issue.
    Iadd this line to both amember's and Wordpress configs:
    ini_set('session.cookie_domain', '.yourdomain.com');
  5. gcornelisse

    gcornelisse New Member

    Joined:
    Jun 18, 2012
    Messages:
    27
    That would explain it! Thanks... will give it a try.

Share This Page