The PHP WhoYou user authentication is a very simple but powerful script it will secure your pages restricting unauthorized users from accessing your private pages, it comes with a user login page and a logout link. its very easy to implement and best of a its free.