How can i prevent a user from logon on two mechines at the same time?

Hi friends i want to prevent a user from logging on another machine if still his session is valid . and i want to display some message like you are already logon on another mechine, you cann't logon.How can i do this?ur'sMallik
[264 byte] By [mallik345a] at [2007-10-3 10:23:45]
# 1
You can add a field in the user colum of the database, when a user is logged on set the field to 1 and when he is logged out set it to 0.And when any user tries to loggon first check for the flag if its 1...then they are logged on somewhere else.
bs_softa at 2007-7-15 5:45:31 > top of Java-index,Other Topics,Fresh Tools...