Static Killusers(Args _args)
{
SysUsersTerminate usersTerminate;
SysClientSessions sysUserSession;
UserInfo userInfoTable;
container usersList;
;
while select sysUserSession
where sysUserSession.userId != curUserId()
{
usersList += [[sysUserSession.userId,sysUserSession.SessionId,sysUserSession.LoginDateTime]];
}
usersTerminate = SysUsersTerminate::newUsersList(usersList);
if (usersTerminate.prompt())
usersTerminate.run();
pause;
}
{
SysUsersTerminate usersTerminate;
SysClientSessions sysUserSession;
UserInfo userInfoTable;
container usersList;
;
while select sysUserSession
where sysUserSession.userId != curUserId()
{
usersList += [[sysUserSession.userId,sysUserSession.SessionId,sysUserSession.LoginDateTime]];
}
usersTerminate = SysUsersTerminate::newUsersList(usersList);
if (usersTerminate.prompt())
usersTerminate.run();
pause;
}
No comments:
Post a Comment