PHP Login System with PDO Connection.

Very long back, we had published a simple PHP login system using PHP, which works only with MySQL database. Today, we are providing you an easy registration and login process using PDO connection with better password encryption, which has an advantage of working on different database systems. PDO is a PHP extension that allow us to implement code which is portable across many databases and platforms. This registration process is used in our Wall Script 8. Here is the demo of this cool & simple login / registration process.

Hi... Awesome article for one just learning to use PDO, thanks so much! Curious, when the files are uploaded and one registers/logs in, should the object information (users information) be displayed at the top of the "home.php" page? I was following along with the article, but perhaps I missed something, not sure. Thanks again!

The reason that the login doesn't work is because the password field in users table is limited to 50 characters while the actual hash is longer than that. To solve this, increase the limit to at least 64 (I increased it to 250) as the SHA256 generates a hash of length 64

Nice work but i have big problemswhen register it dont say i am registred, it does nothing.If try register again it says already registred so it works.Need it to show i am registred, and send me to some other pageand when log in i can see in url it send me to home.php but it only show same contents as main page with login and register, infact no matter what page im on it only show login and register, i am using the files downloaded from here and only set up config file, also im running this from hosted domain. tried it with php56 php71 php72and tested in firefox v61.01 64 bit and in google chrome Version 68.0.3440.84 (Officiel version) (64-bit)