# Kicking Idle Users

**URL:** <https://forum.inductiveautomation.com/t/kicking-idle-users/7999>\
**Category:** Ignition\
**Created:** [February 13, 2014, 1:43pm UTC](https://forum.inductiveautomation.com/t/kicking-idle-users/7999 "2014-02-13T13:43:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djensen](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@djensen](https://forum.inductiveautomation.com/u/djensen)\
**Post date:** [February 13, 2014, 1:43pm UTC](https://forum.inductiveautomation.com/t/kicking-idle-users/7999/1 "2014-02-13T13:43:10Z")

</div>

Recently my company has installed Ignition in one of our plants primarily as a historical data tracking tool for the engineering department. They opted for a five client license and unfortunately this does not appear sufficient due to the engineers forgetting to close there clients on a regular basis. Is there a way to set a time that after which the gateway automatically closes an idle client?

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [February 13, 2014, 2:20pm UTC](https://forum.inductiveautomation.com/t/kicking-idle-users/7999/2 "2014-02-13T14:20:03Z")

</div>

put this in a client timer script and adjust the 30 to whatever fits your need.

```auto
if system.util.getInactivitySeconds() > 30:

   system.security.logout()
```

---

<div class="post-metadata">

**Author:** ![djensen](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@djensen](https://forum.inductiveautomation.com/u/djensen)\
**Post date:** [February 13, 2014, 3:06pm UTC](https://forum.inductiveautomation.com/t/kicking-idle-users/7999/3 "2014-02-13T15:06:52Z")

</div>

Thanks! Works like a charm.
