News for hackers. Stuff that matters.
Re:PHP MD5 Secure login script. by gregjor on Friday October 07, 2011 @02:03PM (#3085116)
Use mysql_real_escape_string() instead of addslashes(). And the cookie contents can't be trusted. The usual way to do this is with a server-side session, but if a cookie is used the user id and name have to be protected; MD5 can be used to do that, too.

There are no comments on this comment yet.