Well, why would you want to do that.
Consider a scenario where the user logged in from home computer but forgot to logout.
Now, the same user comes to office and tries to login to your application, he is locked out now, because your application would not allow him to login.
Is this really what you want?
Perhaps,
you should invalidate the previous login of the same user, if the user logs in again from some place else.