Okay, I wrote a script dealing with basic authentication, it's nothing special and probably not very secure. However, it's the first one of the type I have wrote. Here's what it does.
Users username and password combinations are stored in an mysql database. When they login their password and username is checked with the ones in the database. IF a match is found then cookies are stored and they are sent to the main page. Now the main page will not work unless they have these cookies stored.
Now the problem is, a lot of users can't get logged in. It comes up unauthorized which is what I tell it to say if they don't have the cookies. Then again, I am using $_COOKIE[*] to bring the cookie data back up? Could that be the problem, should I use the older terms? If so what were they?
Next, is there a better way for authenication with mysql databases than this?