Writing login scripts is a pain! Is there a free app out there that will handle a login? All I really need is something to handle a username, password, maybe allow the user to change the password and register other names, and just carry a session throughout other pages.

The password should have encryption, too. That's my main concern.