Online user indication

In the user summery of the admin page there is an indication if a user is online or not. What test does it use for this? Is there a way for a user that connects through a VirtualConnection to be shown as online instead of offline?