/    Sign up×
Community /Pin to ProfileBookmark

Help with password protection!!!

Okay, Im so confused. I’m trying to set my site up so that my clients will be able to log in on my clients.html page and then go to their respective pages with their invoices/project status info on it… I’ve tried to do it in JavaScript, but they told me on the JavaScript board that this may not be the best way to do it b/c its not as secure. So then I tried making .htacess and .htpasswd files and it protected the pages, but the log in didn’t work (and I found out that the passwords still weren’t encrypted so it wasn’t secure). I am looking for a way to do this… doesn’t necessarily have to be simple, just as long as the directions or method is pretty clear. I’m not a programmer, but I have intermediate knowledge of PHP (if that helps). Can anyone out there PLEASE help me???

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYApr 06.2008 — A good way is to stock the passwords as MD5 hashes in a database, to have a form for the user to log in, and then to check the MD5 hash of the password against the entry in the database.

you need to know how to use and handle forms, how to check the data, how to make connections to databases, how to check data from the database.

Also, after the user was actually authenticated, he'll probably want to do something, possibly on several pages, so you might want to look into php sessions for that.

Ask if you have any questions!
Copy linkTweet thisAlerts:
@GreyfishApr 06.2008 — I'm in the middle of developing an identical feature to this, view my post here!
×

Success!

Help @kw2102 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...