Free and open source PHP script for user registration, login & logout. Underlying architecture uses DAO pattern.