session

Discussion in 'aMember Pro v.4' started by kgp43, May 12, 2012.

  1. kgp43

    kgp43 Guest

    Joined:
    May 10, 2012
    Messages:
    4
    Hi,

    I'm trying to output the username in a template and these two methods works .... however, is this correct? Isnt there a smarter way? (i need the user login password as well, un-encrypted).

    Code:
    $user = Am_Di::getInstance()->auth->getUser();
    echo $user->login;
    Code:
    echo  $_SESSION['amember']['_signup_container']['values']['page-0']['login'];
  2. kgp43

    kgp43 Guest

    Joined:
    May 10, 2012
    Messages:
    4
    Seems the first method I posted is the "correct" one, however - I need the session details (for the unencrypted password). Seems aMember save the session details into the database as well, how can I extract those details?
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You wont be able to get the unecnrypted password- this is a security feature.

    David

Share This Page