View Single Post
  #1 (permalink)  
Old 10-16-03, 09:38 AM
mdhall's Avatar
mdhall mdhall is offline
Aspiring Coder
 
Join Date: Oct 2003
Posts: 510
Thanks: 1
Thanked 1 Time in 1 Post
? on users accessing a directory

Was wondering about password protecting a folder/directory. Lets say I set up a website like this...

Main Directory...
file-intro.html
file-member sign up form
file-sign in form
folder-public area
folder-member area

Basically, anyone can access the public directory, but a viewer has to add themselves as a member via the form to access the member directory. The intro.html gives the viewer a choice between the public or member area. The sign up form adds their info to the db, the sign in form gives them access to the members folder. How can you pass protect the member folder/directory so that it queries the db for their sign in info (ex. member name & password)? This is so no one can access any files inside the folder before becoming a member. Does .htaccess do this, or is it only for one password? Sessions? I've found a few member-auth scripts, but they seem pretty massive, or don't seem to let you designate the directory you are led to after signing in, and I wasnt sure about protecting each page inside the folder. Hope I explained this clearly. Thnx.
Reply With Quote