HI, this is my first time. I have read the final forms-based authentication guide and http://en.wikibooks.org/wiki/PHP_Programming/User_login_systems , but I still have doubts as to whether I am doing this correctly. Note. I do this to learn, so please do not offer the framework and php pear auth or any other sibling class. I just want some recommendations on what I can do to improve this.
I don't need CIA style security, just something basic for the login site:
Anyway, this is how my input works:
At the bottom of all this, I place the following, this is the line that I am most worried about: My thinking is that if the session is not established, then show the login form and exit.
if (!isset($_SESSION['authenticated'])) { require_once 'html/login_form.html'; exit(); }
Full code can be found here . It is still incomplete.
I will also try to implement this: How can I slow down user login attempts in PHP .
I am grateful for any feedback.
source share