you would have to find a place that exists to all users logged in.... (ie your database)
and make a
USERS_LOGGED_IN_RIGHT_NOW
--- userid
--- ip_address
--- login_time
table
when a user tries to log in onthe site
it verifies their username and password...
if they are both ok then you look for an entry in the table
if it exists... you see if there is an entry in your table
if there is you print out
sorry, you already logged in from ip_addr at login_time
however you run into problems this way...
you have to be assured that the server itself will forget about the session the moment the user closes the browser or loggs off... this in itself is a problem...