Login/Logout form on homepage

Discussion in 'Customization & add-ons' started by brainstorm, Mar 31, 2005.

  1. brainstorm

    brainstorm New Member

    Joined:
    Nov 13, 2004
    Messages:
    6
    I have an included file that either shows a login form or member information on the homepage of the website depending upon whether the user is signed in. The form works, but the homepage(which is also the landing point for logged in users) doesn't change until another page is browsed to. for example, if a user signs in, they still see a login form that confuses them on that first page they see, prompting them to login 2 or 3 times before it finally shows up.

    i already have session_start(); at the beginning of this file, but i'm thinking that it doesn't change because that page isn't including the check.inc.php file and that in that file is where $_SESSION['_amember_login'] is defined, thus causing no change.

    1- am i right?

    2- is there a work-around?

    Thanks a lot. you've been really helpful in the past.
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    If you contact us via helpdesk and we will be able to see entire code of your page, then it is lot easier to respond.

Share This Page