Page 1 of 1

logout after specific time period

Posted: Mon Oct 16, 2017 6:29 am
by afeefabdussamed
Dear all

How to logout automatic after specific time period

Re: logout after specific time period

Posted: Mon Oct 16, 2017 3:32 pm
by admin
Dear Sir,
you can use this code:

Code: Select all

Function void mainLoopCheckActivity()
#startup

    while (WindowIsOpen())

        // If no activity for 2 -> user logout
        if ((GetUserName() != "") && (GetUserInactivityTime() > 120)) then
            Logout();
        end

        Sleep(1000);
    end
end


Best regards