I have a problem creating a login script, mostly because all mine have failed in one way or another. If anyone knows, which I'm sure they do, how to make one with the following criteria, please post it. If possible, I want a typical Username and Password form. When login is clicked, redirect to the main page, where it checks from a MySQL database if the username and password are registered. Next, have the username registered with a cookie or something so that whenever a user visits a page, it makes sure they're logged in and displays Hello, "User". I know this is a lot to ask, but I have tried again and again and again and can't get one successfully to work. Any links or tutorials regarding the above would also be appreciated.