# \[feature-13751\]Perspective Auto Logout

**URL:** <https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 26, 2019, 2:25pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416 "2019-04-26T14:25:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopher.knapp](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@christopher.knapp](https://forum.inductiveautomation.com/u/christopher.knapp)\
**Post date:** [April 26, 2019, 2:25pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/1 "2019-04-26T14:25:31Z")

</div>

Does anyone have any suggestions on how to auto-logout users in perspective based on inactivity?

Does system.util.getInactivitySeconds work in perspective? I’m struggling to get it to work and I’m wondering if this functionality isn’t there in perspective.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 29, 2019, 5:34pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/2 "2019-04-29T17:34:59Z")

</div>

No, that function doesn’t work in Perspective - we’ll have to add some kind of analogue for it.

---

<div class="post-metadata">

**Author:** ![christopher.knapp](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@christopher.knapp](https://forum.inductiveautomation.com/u/christopher.knapp)\
**Post date:** [May 3, 2019, 4:29pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/3 "2019-05-03T16:29:57Z")

</div>

Any idea if that is in the works?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 3, 2019, 4:30pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/4 "2019-05-03T16:30:26Z")

</div>

I filed an internal ticket, but it hasn’t been triaged for priority yet - no estimates.

---

<div class="post-metadata">

**Author:** ![jburt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jburt](https://forum.inductiveautomation.com/u/jburt)\
**Post date:** [November 14, 2019, 3:31pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/5 "2019-11-14T15:31:35Z")

</div>

Do you know if this has a priority now / is this likely to be implemented?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 14, 2019, 3:47pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/6 "2019-11-14T15:47:43Z")

</div>

Medium priority, but hasn’t actually been assigned out to any developers. We’re definitely going to implement something, I just won’t make any guarantee of a timetable.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [January 30, 2020, 7:19pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/7 "2020-01-30T19:19:09Z")

</div>

I would like to reinforce the need for this feature.

---

<div class="post-metadata">

**Author:** ![j.israelsen](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@j.israelsen](https://forum.inductiveautomation.com/u/j.israelsen)\
**Post date:** [February 20, 2020, 11:12pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/8 "2020-02-20T23:12:30Z")

</div>

Adding my vote for this feature (getInactivitySeconds) for Perspective.

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [May 22, 2020, 6:01am UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/9 "2020-05-22T06:01:36Z")

</div>

Any update on this topic? is there any workaround available. Thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 22, 2020, 4:01pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/10 "2020-05-22T16:01:42Z")

</div>

No workaround, unless you want to implement a custom module; there’s no way in Ignition to run arbitrary code on the browser frontend, which is what you would need to get this.

The feature is currently held up because an inactivity timeout is somewhat at odds with the way identity providers do SSO (single-sign on). For example, if you’re authenticated with Google, and Ignition tries to invalidate your login…Google will just immediately bounce you back, because you’re still signed in. So it might be possible to make something that works with Ignition’s IdP, but that still leaves the feature in a frustrating or misleading state - if you don’t know the ins and outs of identity providers, or you’re using a corporate mandated one, or whatever other complication, then it would just look like the feature isn’t working.

---

<div class="post-metadata">

**Author:** ![guganathan.r](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guganathan.r](https://forum.inductiveautomation.com/u/guganathan.r)\
**Post date:** [May 22, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/11 "2020-05-22T16:23:51Z")

</div>

Noted with thanks.  
Sorry I may be deviating from this topic, is there any alternate for system.security.validateUser possible in perspective? one of my project requires plant operators to approve gatepass from one common system and I would require them to key in their password on every approval.  
I would like to move this project to perspective, Is there any workaround for this?

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [June 7, 2020, 3:18pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/12 "2020-06-07T15:18:59Z")

</div>

Paul, I am not sure I understand. If we can detect an inactivity timeout why can’t we just issue a system.perspective.logout command. Most of the users I want to logout are just leaving the browser window open indefinitely and I want to log them out.

My problem up till now has been detecting inactivity accurately.

---

<div class="post-metadata">

**Author:** ![jasonr](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jasonr](https://forum.inductiveautomation.com/u/jasonr)\
**Post date:** [July 2, 2020, 7:48pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/13 "2020-07-02T19:48:10Z")

</div>

Have you had any success with auto logging a user out or changing the user to a guest with no permissions?

---

<div class="post-metadata">

**Author:** ![steph.holder77](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@steph.holder77](https://forum.inductiveautomation.com/u/steph.holder77)\
**Post date:** [September 23, 2020, 6:22pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/14 "2020-09-23T18:22:51Z")

</div>

Is there an update on this topic yet ?

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [September 23, 2020, 7:32pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/15 "2020-09-23T19:32:02Z")

</div>

I know this exists in 8.0.16+ under the Project Properties -\> Perspective -\> Inactivity.

---

<div class="post-metadata">

**Author:** ![steph.holder77](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@steph.holder77](https://forum.inductiveautomation.com/u/steph.holder77)\
**Post date:** [September 24, 2020, 1:57pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/16 "2020-09-24T13:57:05Z")

</div>

Thank you ! @code_skin

---

<div class="post-metadata">

**Author:** ![MikeAllgood](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@MikeAllgood](https://forum.inductiveautomation.com/u/MikeAllgood)\
**Post date:** [October 9, 2020, 6:54pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/17 "2020-10-09T18:54:22Z")

</div>

I have the same request, but my client is using 8.0.8 and will not upgrade (they tried upgrading to 8.0.9 and it broke content they were depending on, hence their reluctance). Is there a way to do this in 8.0.8? This is in a 21CFR Part 11 compliant facility and they have to have tight controls as well as lots of transaction logging to include user credentials. If the system cannot auto logout the user on inactivity then they may have issues with inaccurate transaction logging (wrong user ID).  
Thoughts, ideas?

---

<div class="post-metadata">

**Author:** ![qliu](https://avatars.discourse-cdn.com/v4/letter/q/bc8723/32.png) [@qliu](https://forum.inductiveautomation.com/u/qliu)\
**Post date:** [January 14, 2021, 8:50pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/18 "2021-01-14T20:50:56Z")

</div>

Is there an update on this topic yet ?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 14, 2021, 8:57pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/19 "2021-01-14T20:57:12Z")

</div>

An inactivity timeout was added in 8.0.16. Are you asking about something else?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 14, 2021, 8:57pm UTC](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416/20 "2021-01-14T20:57:31Z")

</div>

What update are you expecting? It is solved in 8.0.16+. Mike didn’t get an answer for 8.0.8, and I doubt he’ll get one.

[Next page](https://forum.inductiveautomation.com/t/feature-13751-perspective-auto-logout/24416.md?page=2)
