There are some UDFs to check who is logged on remotely.

Sessions on a Terminal Server is not the same as a locally logged on user.