Accessing Member_ID

Discussion in 'Integration' started by skbohler, Jul 10, 2006.

  1. skbohler

    skbohler Member

    Joined:
    Jun 1, 2006
    Messages:
    44
    Hello,

    I'm trying to write some PHP code. I need to determine the member_ID of the user logged in.

    How do I do that?

    Thanks in advance,

    SB
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    PHP:
    <?php
    session_start
    ();

    print 
    $_SESSION['_amember_user']['member_id'];

    print_r($_SESSION['_amember_user']);

    ?>
  3. skbohler

    skbohler Member

    Joined:
    Jun 1, 2006
    Messages:
    44
    Thank you!

Share This Page