Hi All,
I found the below codeby Jovan to log off all user after few minutes and upon searching also found to log off all user except admin user. However, I am looking for code to log off different user at different set time i.e for normal user 10 min, Nurse 30 min, Finance 90 min and admin no time limit. I am completly new with this code as I haven't used programming for few decades. I hope someone can help me out with my code. Thank you.
// Created on 15 October 2012 by Jovan Bulajic
static void User_Timeout(Args _args)
{
UserInfo userInfo;
;
ttsbegin;
while select forupdate *
from userInfo
{
userInfo.autoLogOff = 30;
userInfo.update();
}
ttscommit;
}
Regards,
Niresh Joshi