Timed maintenance login

I have been testing and evaluating switching over to Ignition for a central HMI system for a few weeks, and have been making great strides.

One thing I can not wrap my head around, is how to do a maintenance login that times out after (x) number of minutes, from within the same app. Although I easily could have maintenance staff use their own logins, 99.99% of the time maintenance will walk away as soon as a problem is resolved, leaving the operators with the ability to have unauthorized access to dangerous functions.

Any suggestions on how to get away from this??

Please edit your question (pencil icon) and add the Perspective or Vision tag as appropriate. The answer may depend on that.

Welcome to the forum.

1 Like

Thanks Transistor... noted and updated.

Now that we know we are working in vision, you can use system.security.logout - Ignition User Manual 8.1 - Ignition Documentation to programmatically log out a user via a script.

A simple way would be to setup a client timer script that runs every X seconds, have it check the value of system.util.getInactivitySeconds - Ignition User Manual 8.1 - Ignition Documentation which will give you how many seconds since the keyboard/mouse has been touched, and if it exceeds a certain amount, then log them out.

You may also want a button that logs out as well so the maintenance can do what they need, then log out, or the operator can log them out if they need immediately so they can then login and do what they need.

If you want to enforce a maximum logged-in time, do what Brian suggests, but don't check user inactivity. Instead, use the timer event to log a timestamp when a maintenance user logs in, and log them out some fixed duration later.

3 Likes

This is the way. Our client specifies 30 minutes maximum for any levels above an operator level/role. This way even supervisors can't log in to have some extra functionality and leave it for an operator to get into things they shouldn't be getting into.

1 Like

A combination would make sense to me: inactivity plus fixed time as fallback

2 Likes

Wrong topic?