I would like to share my login script for a web based application that i code in PHP. For this script, I'm using session which is then stored in MySQL. This is just a simple script that I made to help one of my friends for his PHP learning process.
For this script, I doubt on the security on login process. I'm no expert in this field. Any suggestion are much appreciated as I'm still learning my way to be a better and DRY programmer. Thou this script does have repetition on certain things especially IP variables which already declare on Login class constructor, still I declare it on every page to check session authentication.