Here you will find a fully working login-system for PHP/MySQL(MariaDB).
Now, you are welcome in for a demo, source code, SQL-files and documentation.
It's all free for you - in both understanding of the word. It's free as in «free beer» and also free as in «free speak».
Does it have any licence at all? Well yes it is licenced under the GPL v2, chosen after a lot of thinking and reading.
The reason for that is that I want to ensure that this is shared. Use it for commersial sites, if you want, but if you have a good
idea to make it better, I'd prefer that it came back to me so I could include it.