You are not logged

Discussion in 'aMember Pro v.4' started by fmagusto, Jan 4, 2012.

  1. fmagusto

    fmagusto Guest

    Hello, il my page have this (work for Amember V3)
    But in V4 i have error "You are not logged"
    Have you a idéa ?

    <?php
    session_start();
    $user = $_SESSION['_amember_user'];
    if ($user['member_id'] > 0){

    } else {
    header('Location: /membres/');
    }

    $par = $user[login] ;
    ?>
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Go to aMember CP -> Setup -> Advanced : Session Storage, change it to PHP instead of "Database"
  3. fmagusto

    fmagusto Guest

    Yes, but it s i dont work
    I have uou are not logged
  4. fmagusto

    fmagusto Guest

    Please, help me.
  5. fmagusto

    fmagusto Guest

    I just try to connect for the V3, uis going on the protected page, I am logged. The placing of the V3 puts in place the session, but the V4 does not.
    Other users have the same concern?
  6. fmagusto

    fmagusto Guest

    I am find, the
    ?php
    session_start();
    $user = $_SESSION['_amember_user'];
    if ($user['member_id'] > 0){

    don't work witch the new version. But the API Lite is OK

Share This Page