log user on manually.

Discussion in 'Customization & add-ons' started by juniorm, May 10, 2011.

  1. juniorm

    juniorm aMember Pro Customer

    Joined:
    Nov 13, 2005
    Messages:
    47
    Hello,

    I am integrating the gigya.com login to work with my version of amember.

    I have successfully allowed it to create a user account, but I do not seem to be able to login to my site afterwards.

    i have all the data for the user account: member_id, login, password.

    what do i need to do to login (using the free plugin only)
    do i need to populate some session variables and then call some code?

    Many Thanks,


    Junior
  2. juniorm

    juniorm aMember Pro Customer

    Joined:
    Nov 13, 2005
    Messages:
    47
    I have the answer now:


    Just set the following two session variables:
    $_SESSION['_amember_login']
    $_SESSION['_amember_pass']

    before calling this below:

    $_product_id = array('ONLY_LOGIN');
    require_once 'plugins/protect/php_include/check.inc.php';

Share This Page