# Ignition Client Side Application Auto Logout Issue

**URL:** <https://forum.inductiveautomation.com/t/ignition-client-side-application-auto-logout-issue/44507>\
**Category:** Ignition\
**Created:** [March 16, 2021, 4:34am UTC](https://forum.inductiveautomation.com/t/ignition-client-side-application-auto-logout-issue/44507 "2021-03-16T04:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar.iparkar](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sagar.iparkar](https://forum.inductiveautomation.com/u/sagar.iparkar)\
**Post date:** [March 16, 2021, 4:34am UTC](https://forum.inductiveautomation.com/t/ignition-client-side-application-auto-logout-issue/44507/1 "2021-03-16T04:34:11Z")

</div>

Hi Team,  
Is there any auto logout feature or any code available to prevent application from shutdown accidently due to power failure or if user close application directly .  
We tried with client side shutdown-intercept event for handling this but not working.  
Our purpose is ,If application closed accidently then we need application to be shutdown in a proper way as per our script.

Thank you,  
Sagar

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [March 16, 2021, 12:16pm UTC](https://forum.inductiveautomation.com/t/ignition-client-side-application-auto-logout-issue/44507/2 "2021-03-16T12:16:00Z")

</div>

You can remove client exit options in Project Properties, and Client Event Scripts-\>MenuBar. The shutdown-intercept event cannot be used if the client is force closed like ctrl + alt + delete, or power loss. You could add a UPS (uninterruptable power supply) to the hardware running the client to help prevent power loss events. Depending on the nature of a _safe shutdown sequence_, you should consider writing a gateway timer script to check for the client status via `system.util.getSessionInfo` then execute some logic when the client session is ended.
