Hi all
I am new to PHP and learning it slowly. My project at the moment is to create a password protected directory that only members can access.
So far I have a log in page that users input their username and password. That is submitted to an authenticate php script that matches the entries with database entries.
My question is what do I do next? I have a .htaccess file in the directory, how do I tell it to let my user in? Can someone advise?
Regards
Lawrence.
Password Protected Area newbie question :)
Moderator: General Moderators
- dyconsulting
- Forum Newbie
- Posts: 14
- Joined: Mon Dec 01, 2003 6:52 pm
- Location: San Francisco
Thanks Dmitry - I have rewritten my script to start a session if the username and password are found in the same row in the database.
The only problem is that my site offers downloads for members only, is there anyway I can protect the download files from unauthorised access?
Thanks for your help
Lawrence
The only problem is that my site offers downloads for members only, is there anyway I can protect the download files from unauthorised access?
Thanks for your help
Lawrence