i was just wondering if there's a way to 'trap' users accessing the same account at the same time

for example:

if user1 is online to pc1, pc2 cannot login using user1 since user1 is already logged-in...

--hope anyone can help--