deathshadow pointed out good practises to use on login and good ethics on php coding.
one thing I dont suggest is storing actual user table id to identify the user after logged in.what I suggest is...
Type: Posts; User: rashod
Search: Search took 0.02 seconds.
Results 1 to 1 of 1