Admin Authentication

Discussion in 'Setting-up protection' started by nolesnyc, Oct 9, 2009.

  1. nolesnyc

    nolesnyc New Member

    Joined:
    Oct 9, 2009
    Messages:
    5
    Is there something I can put at the top of my other admin pages on my website that will use the admin authentication from amember?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can use this code:
    Code:
    require "/full/path/to/amember/config.inc.php";
    require "/full/path/to/amember/admin/login.inc.php";
    
    
  3. nolesnyc

    nolesnyc New Member

    Joined:
    Oct 9, 2009
    Messages:
    5
    That seems to work but I get this message:

    WARNING: Cannot modify header information - headers already sent in line 1633 of file common.inc.php
    /mnt/target03/351606/401410/www.maxsdiecastcarmuseum.com/web/content/amember

    I put that tag before the <head> tag
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Make sure you do not have spaces or extra line carriages at the bottom of the file when you save it.

    Also, make sure (in your code) you don't have a separate "session start" statement..

Share This Page