Equinox Online Help - Language Reference - A to Z

Home

IsUserAttached

Applies to
SyntaxIsUserAttached (LoginNameExpression)
Action[Function] Provides connection information regarding a specified user.
ScopeUsable anywhere.
Notes

This function is used to determine whether a particular user specified by LoginNameExpression is currently attached. It returns the number of logins for that particular user.

CategoryClient - Server
See Also ConnectionID, FirstAttachedUser, IsNetwork, IsUserGroupAttached, NextAttachedUser, RemoveAttachedUser
Example

This example checks whether users are running multiple logins and requests them to reduce their sessions to one. Note that you can prevent multiple logins via the User Group Permissions Dialog.

string LoginName, ConnectID

FirstAttachedUser LoginName, ConnectID

while not syserror
if IsUserAttached("LoginName") > 1 then
DisplayMessage "Please only run one Equinox session !! ", ToConnection, ConnectID
end if

NextAttachedUser LoginName, ConnectID
end while