So I store users password in database after hashed by password_hash() (php 5.5+). and then verify user when logging in using password_verify(). but now i want to also store password on users browser with cookies. i hash the same password using password_hash but this time the second part of hash is obviously different. (salt)
because of that, two hashes (the one in database and the one in cookie) are NOT equal. how do i verify them then???