# Sessions Exceeded when closing and re-launching session quickly

**URL:** <https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985>\
**Category:** Ignition Early Access\
**Created:** [April 10, 2019, 6:09am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985 "2019-04-10T06:09:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [April 10, 2019, 6:09am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/1 "2019-04-10T06:09:29Z")

</div>

I have just activated my license, which gives me a single Perspective session. This is a standalone machine, controlled with an iPad, so a single session is all I’ll ever need. However, now that I’m not running in trial mode, the single session limit is enforced.

If I close and then attempt to re-open the application using the Ignition app, I get a “Sessions Exceeded” message. The only way around it is to wait for a period of time and retry. I’m not sure yet exactly how long - it’s not a huge length of time - but definitely long enough to be annoying for a user. We all know what operators are like - they’ll mash the screen as fast as possible and give it no chance to time out, and then when they give up and call maintenance, it will of course have timed out and be working by the time they arrive 😉

---

<div class="post-metadata">

**Author:** ![silverbacknet](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/silverbacknet/32/7385_2.png) [@silverbacknet](https://forum.inductiveautomation.com/u/silverbacknet)\
**Post date:** [April 10, 2019, 8:15am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/2 "2019-04-10T08:15:59Z")

</div>

The default session timeout is 120 seconds, you can change that in Project Properties -\> Perspective -\> General. It’s that way to work around mobile users losing connection. However, if you make it too short, like 5 seconds, the tabbing away or losing network for that long will kill your session entirely. If it’s just a monitoring screen, it might not be so bad, but if you have to log in every time…

---

<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:** [April 10, 2019, 2:05pm UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/3 "2019-04-10T14:05:39Z")

</div>

Session Timeout is a balancing act, as timeouts which are too long would impact users within your use-case, while making it too short would render users within warehouses with spotty wifi unable to maintain their session as they move from aisle to aisle.

There are open tickets to change how we force Sessions to close, which would allow a Session logout event to immediately terminate the session, but we’re still working on items like that.

For now, you should probably trim your default timeout to something like ten to twenty seconds. Anything less than that and you’re getting into potentially frustrating territory.

---

<div class="post-metadata">

**Author:** ![ASF](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ASF](https://forum.inductiveautomation.com/u/ASF)\
**Post date:** [April 11, 2019, 4:21am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/4 "2019-04-11T04:21:03Z")

</div>

> [@cmallonee](#):
>
> There are open tickets to change how we force Sessions to close, which would allow a Session logout event to immediately terminate the session, but we’re still working on items like that.

Thanks - sounds link this tweak will fix my issue when it rolls out, and in the meantime I'll just have to teach the operators to be patient 🙂

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [February 19, 2021, 3:08am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/5 "2021-02-19T03:08:25Z")

</div>

Has there been any updates on this?

I am having the same issues mentioned above. Set my desktop timeout to 10 seconds and operators are still opening and closing the app too fast…

You’d think that eventually the server would notice that the correct number session are active and exit the session exceeded screen.

However, I am not web expert so this may not be the reality of things.

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [March 1, 2021, 2:58am UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/6 "2021-03-01T02:58:09Z")

</div>

Easiest way to “resolve” this issue is to launch your app with a batch/bash script with a delay.  
I also Echo some fake loading messages to tell the operators that something is happening,

---

<div class="post-metadata">

**Author:** ![jonah.haekel](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jonah.haekel](https://forum.inductiveautomation.com/u/jonah.haekel)\
**Post date:** [August 2, 2022, 7:05pm UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/7 "2022-08-02T19:05:53Z")

</div>

Is there any intentions of adding a ‘force close’ session from the gateway status screen. I think it would be handy to have the ability to do so from the Status/Connections/Perspective Sessions page.

---

<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:** [August 2, 2022, 7:42pm UTC](https://forum.inductiveautomation.com/t/sessions-exceeded-when-closing-and-re-launching-session-quickly/23985/8 "2022-08-02T19:42:08Z")

</div>

We do have an open feature for that (IGN-2827). See here: [[IGN-2827]Can You Terminate A Perspective Session from The Gateway?](https://forum.inductiveautomation.com/t/ign-2827-can-you-terminate-a-perspective-session-from-the-gateway/39135)
