If anyone can help, I need simple code to register users with a database, and to login...

This does include session management if possible!

I am king PHP N00B