I'm looking for a safe, pre-built cookie based (instead of session based) authentication system that I can make use of to password protect some websites for simple authentication.
Cookie based is preferred but it can be anything. Basic authentication systems, where users login, and reset passwords, etc. have been created and recreated a 1000 times over and I don't want to do the same - I just want to use something that works.
Something that would allow me to copy a couple lines of PHP code to the top of a PHP file and by doing that enforce security on that file.