Dashed borders lets you know this is hard core web design. |
After a bit of Google searching, I could not find the login system I want. I would say 'fit my needs', but that's not accurate. There were tons that could fit the need, but I want a back end php system that allows a user to login by way of ajax calls. Specifically one that didn't require all my file names to end in .php. Is that necessary? No. Is that being picky? Probably. Is it fun to make it work anyway? Of course.
There are plenty of php ajax style login systems and examples out there. I started with this one from 9lessons.
I have no right to complain about other people's work, but wow this code is hard to read and inconsistent. It works though, so I chose to clean it up and start making changes.
DISCLAIMER: I would like to note I am not a security expert. While I feel this system is decent enough, I cannot advise using it in a real application environment.
Here is a demo, note all pages end in html. You can log in with demouser and password, but check out the registration. That's where most of the magic is.