Validating a password in php
This may seem a little ridiculous to assume my PHP scripts will still be running in 2037, but then again nobody readily anticipated the Y2K Bug either.
The second query would generally be performed if you required further data that was not contained within your table.
I do not recommend using the password hashing methods outlined below, but the general ideas and concepts still apply.
The first method involves storing a unique salt in one of your configuration files, a define statement, or class constant.
On each page load we would be performing a comparison for equality on the visitor’s current IP and the stored copy of their IP in the session.
Drawbacks from this method are related to the fact that many individuals do not have a static IP.