query string parameters

Discussion in 'aMember Pro v.4' started by adeptt, Mar 27, 2012.

  1. adeptt

    adeptt New Member

    Joined:
    Jan 14, 2008
    Messages:
    10
    We currently use some other software in the members section of amember. We authorize access to this content using the following session strings

    // user id
    $Url .= "&usi=" . urlencode($_SESSION['_amember_user']['login']);

    // user email
    $Url .= "&eml=" . urlencode($_SESSION['_amember_user']['email']);

    Since we upgraded to version 4.0 these sesssion strings are not pulling the correct value. They are pulling nothing.

    What is the new correct session string for login and email

    thank you
    todd
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    have a look:
    http://www.amember.com/docs/API/Lite
    PHP:
    $user Am_Lite::getInstance()->getUser();
    $Url .= "&usi=" urlencode($user['login']);
    $Url .= "&eml=" urlencode($user['email']);

Share This Page