1) Change
ToPHP Code:$query = mysql_query( "SELECT `password`, `salt`, FROM `users` WHERE `username` = '".$username."'" );
You're right, you have done that wrongPHP Code:$query = mysql_query( "SELECT `password`, `salt` FROM `users` WHERE `username` = '".$username."'" );
Don't worry about anyone guessing the name to your session. Even if they know it, they won't be able to do anything with it, as it's all server side. Unless you're going to be doing stuff with sessions in the database, I wouldn't bother with a complex logged in session.





Don't worry about anyone guessing the name to your session. Even if they know it, they won't be able to do anything with it, as it's all server side. Unless you're going to be doing stuff with sessions in the database, I wouldn't bother with a complex logged in session.
Reply With Quote






I will learn to spot mistakes though
