Secure PHP login with session tokens and flood control.