SESSION problem, I think

Discussion in 'Troubleshooting' started by dereck_j2, Apr 5, 2007.

  1. dereck_j2

    dereck_j2 Member

    Joined:
    Aug 22, 2006
    Messages:
    42
    I all.

    This is my set up.

    I have my home page which has a members' login field.

    If i login as a member I am redirected to the login page which is asking me to login again, BUT if I click on the back arrow in my browser and go back to my home page, the SESSION variables show that I am logged in.

    Can anyone give me any advice.

    part of page:

    <?php session_start();
    <form method="post" action='/amember/login.php'>
    <table width="44%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td colspan="2" align="left" class="pinsearch"><?
    if ($au=$_SESSION['_amember_user']) // user is logged-in
    print "Hello $au[name_f] $au[name_l]"; ?> </td>
    <td align="left" class="pinsearch"><? print "<a href='/amember/logout.php'>Logout</a>"; ?></td>
    </tr>
    <tr>
    <td colspan="3" align="left" class="pinsearch">Members area:</td>
    </tr>
    <tr>
    <td width="20%" class="pinsearch">Username:</td>
    <td colspan="2"><div align="left">
    <input name="amember_login" type="text" class="bodytext" size="19" />
    </div></td>
    </tr>
    <tr>
    <td class="pinsearch">Password:</td>
    <td width="27%"><input name="amember_pass" type="password" class="bodytext" size="19" /></td>
    <td width="53%"><input name="Submit" type="submit" class="pinsearch" value="Login" /></td>
    </tr>
    <tr>
    <td colspan="3" class="pinsearch"><a href="amember/login.php" target="_self">Forgotten Password </a></td>
    </tr>
    </table>
    </form>?>

    Many thanks

    Dereck
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Dereck, please contact us via helpdesk with exact urls and login info.
  3. rocknet

    rocknet New Member

    Joined:
    Apr 6, 2007
    Messages:
    1
    Question

    Just curious as to why you don't post solutions here? I have this exact same problem and instead of being able to read the solution, I now have to contact help desk and wait on a reply.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Unfortunately, without trying it in my browser, I cannot give any recommendations.

Share This Page