password/login system in php
Posted
by Jonathan
on Stack Overflow
See other posts from Stack Overflow
or by Jonathan
Published on 2010-04-07T11:26:40Z
Indexed on
2010/04/07
12:43 UTC
Read the original article
Hit count: 183
For a login system in php would this be a suitable outline of how it would work:
users types in username and password, clicks login button.
- Checks if user exists in database,
- if it does, then retrieve the salt for that user
- hash the password and salt (would this be done on the client or server side? I think client side would be better, but php is server side so how would you do this?)
- check value against value in database,
- if the values match then user has typed in correct password and they are logged in.
© Stack Overflow or respective owner