I'm looking for a good PHP login class via MySQL, and I'm not yet completely satisfied with anything I've found. This prior SO question doesn't really address my needs, as I'd prefer to stay away from PEAR and CodeIgniter, and just have a simple and small PHP class to do the job.
There's a TalkPHP forum that has several to choose from, but they all seem to have something or other lacking.
- PHP Login Class by daz: seems a little tricky to extend, and doesn't support multiple user roles
- TalkPHP.com_Login_Script.PHP5.Beta_1 by Wildhoney: looks very extensible, supports configurable user roles, but no db support and stores passwords in plaintext in an XML file!
- authclass by Sam Granger: again, no support for multiple user roles, but does use MySQL
Now, my first instinct was to just dive in a re-code the last one in that list (authclass), but fortunately, my second instinct was to ask stackoverflow :)
So here's the big question: is there a secure, open source, multiple-user-role login class for PHP5 and MySQL that anyone is using? Thanks in advance, and I appreciate any kind of comments here, even if you don't have a particular piece of code to point to!