PDA

View Full Version : need coding for user to create password


kpretired
02-11-2007, 05:36 PM
Ok having a folder or file password protected is not biggy for me. Especially when my hosting company has that option in the Vdeck control panel (ipowerweb). My problem is that I need to have a system where I assign user names and when they attempt to log in they will be prompted to create a password. Can this be done via htaccess and if so, what would be the code?

chump2877
02-11-2007, 05:51 PM
Why do you need to use .htaccess for that? I'm not even sure you should, because then common user pages will use the same password, right? If anything, a system like this sounds impractical and inefficient....Just store the usernames and passwords in a MySQL database....And use PHP SESSIONS...that should be secure enough....

kpretired
02-11-2007, 06:04 PM
Why do you need to use .htaccess for that? I'm not even sure you should, because then common user pages will use the same password, right? If anything, a system like this sounds impractical and inefficient....Just store the usernames and passwords in a MySQL database....And use PHP SESSIONS...that should be secure enough....
The reason for using htaccess is because thats is the only systme that I am somewhat familiar with, however I am eager to learn about another method. It will not be common user pages and each user would have their own login and password. I am not familiar with MySQL database....And PHP SESSIONS
I have searched the internet trying to solve this and have looked into PHP, but failed to find what I was looking for. If you know of a script in PHP or anything else that will help me accomplish this task, I would certainly appreciate it.

dniwebdesign
02-11-2007, 06:20 PM
Checkout http://www.hotscripts.com/PHP/Scripts_and_Programs/Security_Systems/index.html for password protection PHP scripts. Most available are free and are easy to set up.