Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder ajhauser's Avatar
    Join Date
    Nov 2007
    Location
    Earlville. It's where Earls come from.
    Posts
    226
    Thanks
    74
    Thanked 1 Time in 1 Post

    Question Simple Login for a website

    Hey guys, quick question:

    I have a site that needs to prompt the viewer for a login and password when they arrive, and I am looking for the most economical way to do this. There are 300 employees who will be given the information - the point is just to keep the casual passerby "out".

    This is not a high security situation, but the pages of the site (probably only 5 to 8 total) need to be unaccessible without the login information.

    Can anyone suggest a starting point or method here?
    I posted here because this is more of a general question that I figured could be solved using PHP...

    Thanks much for your help.

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    The simplest and easiest way to password protect a webpage is with HTTP Authentication.

    http://php.net/manual/en/features.http-auth.php

  • Users who have thanked Fumigator for this post:

    ajhauser (12-11-2010)

  • #3
    Regular Coder ajhauser's Avatar
    Join Date
    Nov 2007
    Location
    Earlville. It's where Earls come from.
    Posts
    226
    Thanks
    74
    Thanked 1 Time in 1 Post
    Ah, very cool - I will check this out right away, thanks. I am setting up the admin with Contribute which is pretty straightforward - if the admin just "pulls" pages down and edits them do you think this will cause any issues?

    I'm just wondering.
    Thanks again!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •