PDA

View Full Version : password protection help


james25
06-30-2008, 05:16 AM
Can I protect part of my web site with a password, using html codes?
please help me immidiately. i haev almost completed building my website and i have to protect some data which i want my users can download with special password only.
please give details..
thanks in advance

demtron
07-02-2008, 12:04 AM
One way would be to set up server user authentication on the server. If you use a shared hosting plan, this is probably not an option.

Another option would be to query usernames/passwords against a database, then assign a cookie to the session after the user has successfully logged in. This will require server-side coding and a database or some other data store.

Good Luck!