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: 164

Filed under:
|
|
|
|

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.

  1. Checks if user exists in database,
  2. if it does, then retrieve the salt for that user
  3. 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?)
  4. check value against value in database,
  5. if the values match then user has typed in correct password and they are logged in.

© Stack Overflow or respective owner

Related posts about login

Related posts about php