# Number of perspective sessions

**URL:** <https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 9, 2020, 9:04pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946 "2020-03-09T21:04:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [March 9, 2020, 9:04pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946/1 "2020-03-09T21:04:39Z")

</div>

Is it possible to get the number of open perspective sessions (that can be seen in the gateway) in a tag or through a script?

---

<div class="post-metadata">

**Author:** ![jspecht](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jspecht/32/6465_2.png) [@jspecht](https://forum.inductiveautomation.com/u/jspecht)\
**Post date:** [March 9, 2020, 9:15pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946/2 "2020-03-09T21:15:39Z")

</div>

Yes - I would start with the [system.perspective.getSessionInfo](https://docs.inductiveautomation.com/display/DOC80/system.perspective.getSessionInfo) script function to get the list of all Perspective sessions.

---

<div class="post-metadata">

**Author:** ![ankitkarwa21](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@ankitkarwa21](https://forum.inductiveautomation.com/u/ankitkarwa21)\
**Post date:** [March 9, 2020, 9:58pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946/3 "2020-03-09T21:58:16Z")

</div>

Thanks @jspecht

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [December 30, 2020, 10:32pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946/4 "2020-12-30T22:32:59Z")

</div>

How about from gateway scope? I see that function’s scope is only a perspective session, how would you get it from a gateway scope?

---

<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:** [December 31, 2020, 4:42pm UTC](https://forum.inductiveautomation.com/t/number-of-perspective-sessions/32946/5 "2020-12-31T16:42:13Z")

</div>

I just double-checked and that function may be invoked from the Gateway.

 ![Screen Shot 2020-12-31 at 8.41.37AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/3/931503115fa57caf3eb26427f2b19a14b9faedc7.png)
