# Perspective auto-logs out after a few minutes

**URL:** <https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 11, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346 "2023-10-11T15:26:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [October 11, 2023, 3:26pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/1 "2023-10-11T15:26:31Z")

</div>

I have a Perspective project setup and I have noticed that if I jump to a new tab in my browser or do something else that I will quickly be logged out of my Perspective session.

Is this behavior caused by enabling **Always ask the IdP to re-authenticate users by default**?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/9/29dc10fa3e882d0d5b70ad9f72c23daa7c82559b.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/0/00fa30854a872ecf981f22e2b8263d5b5f98a3d7.png)

And am I correct in assuming that I have to set this for each project individually?

---

<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:** [October 11, 2023, 3:34pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/2 "2023-10-11T15:34:54Z")

</div>

I don't think it is, try going to your identity provider settings on the gateway, and check your `Session Inactivity Timeout` and `Session Expiration` settings.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [October 11, 2023, 3:39pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/3 "2023-10-11T15:39:47Z")

</div>

Session Inactivity Timeout is set to 30 minutes (I am being logged out far quicker than 30 minutes).

Session Expiration is set to 0 minutes (which means a session will not have a max lifetime).

I have disabled **Always ask the IdP to re-authenticate users by default** for testing purposes and haven't been logged out since then so I think I have identified the problem correctly but I don't see why changing browser tabs would make me logout.

This is v8.1.27.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [October 11, 2023, 3:42pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/4 "2023-10-11T15:42:03Z")

</div>

I re-enabled **Always ask the IdP to re-authenticate users by default** for more testing.

I was logged into my Perspective Session. I then logged out of the gateway webpage from another tab and it logged me out of my Perspective Session.

I am guessing that is be design?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [October 11, 2023, 4:28pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/5 "2023-10-11T16:28:43Z")

</div>

Is it possible the browser itself is doing something here? What browser are you using

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 11, 2023, 6:02pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/6 "2023-10-11T18:02:46Z")

</div>

There has [always been contention](https://forum.inductiveautomation.com/t/gateway-reloads-active-pages-randomly-perspective/62687/5) among cookies between the Gateway and Perspective. Please don't use both in the same browser.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 11, 2023, 6:03pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/7 "2023-10-11T18:03:58Z")

</div>

I now do any development testing in a private window on my browser to avoid this, since I normally keep a tab open with our gateway webpage for troubleshooting/ general monitoring.

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [October 11, 2023, 6:24pm UTC](https://forum.inductiveautomation.com/t/perspective-auto-logs-out-after-a-few-minutes/80346/8 "2023-10-11T18:24:53Z")

</div>

> Additionally, Sessions will “refresh” whenever a Designer for the Gateway saves. If your sessions are open against a gateway that is undergoing active development, you should expect refreshes whenever someone saves their changes in the Designer.

Will any designer running on the gateway cause a refresh? For any project the designer has open?

If I have session A open and a user is modifying session B and saves will that cause a refresh for session A?
