Php Sessions

Discussion in 'Setting-up protection' started by jdcharleston, Nov 28, 2003.

  1. jdcharleston

    jdcharleston Guest

    Hello,
    I am currectly building a php based site and I am writing in php sessions to control the site protections as well as carry the users information around site so they they get only access to their information to and from the database. I am working now on building the rest of the database around the amemeber user database. What I need to know is how to set the username into the session when they get to their protected dir with emembers php_include.

    Thanks for your help.
  2. Guest

    Guest Guest

    session_start();
    print $_SESSION['_amember_user']['member_id']; //change the member_id to the right function you would like. ie.....zip, f_name, state, .........as long as they are with in the amember limits



    make sure there is an include like
    include ("/path or../ to config.inc.php");

Share This Page