How to automatically log out a member when another log in happens?

I want to prevent different people using same member account. So how can i automatically log out a person if another person logged in to same account?