Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-07-2010, 05:01 PM   PM User | #1
ajhauser
Regular Coder

 
ajhauser's Avatar
 
Join Date: Nov 2007
Location: Earlville. It's where Earls come from.
Posts: 224
Thanks: 73
Thanked 1 Time in 1 Post
ajhauser is an unknown quantity at this point
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.
ajhauser is offline   Reply With Quote
Old 12-07-2010, 05:12 PM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
The simplest and easiest way to password protect a webpage is with HTTP Authentication.

http://php.net/manual/en/features.http-auth.php
__________________
Fumigator is offline   Reply With Quote
Users who have thanked Fumigator for this post:
ajhauser (12-11-2010)
Old 12-11-2010, 01:55 AM   PM User | #3
ajhauser
Regular Coder

 
ajhauser's Avatar
 
Join Date: Nov 2007
Location: Earlville. It's where Earls come from.
Posts: 224
Thanks: 73
Thanked 1 Time in 1 Post
ajhauser is an unknown quantity at this point
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!
ajhauser is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:45 PM.


Advertisement
Log in to turn off these ads.