Re: User auth and ID questions
Look at your login.php file, particularly the mysql query. I'm not sure if this is it, but I never call php functions inside queries. I doubt this is it, but it could be the problem. Also try explicitly defining * in the query to return only row_id since you only require that value.
As for logging out, I don't think you want $_SESSION = array(); in your code, I've never used that and don't know why its there.
If you are still having problems, I will attempt to run it and look more closely at it.
|