# How is the Perspective Sessions status page info found?

**URL:** <https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921>\
**Category:** Module Development\
**Tags:** perspective, ignition81\
**Created:** [May 18, 2023, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921 "2023-05-18T20:35:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [May 18, 2023, 8:35pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921/1 "2023-05-18T20:35:21Z")

</div>

On the Gateway, the Status-\>Connections-\>Perspective Sessions has a list with information about all open sessions, both designer and perspective. Is there a way to access this list, or equivalently, how is this information found in the backend?

I've been using PerspectiveSessionMonitor, InternalSessions, SessionCollection, and PerspectiveSessionInfo.

List openClients = psm.getClientSessionsForProject("ProjectName");

PerspectiveSessionMonitor psm = this.perspectiveContext.getSessionMonitor();  
List openClients = psm.getClientSessionsForProject("Project")

And this can get some of the information, but not all of it. This only perspective sessions, not designers. And not in any convenient way.

But theres also PerspectiveSessionInfo.SimplifiedGsonEncoder. Which gets some of the information, but as outlined in the documentation:  
`Used for customer-facing encoding of this class, but not used for the status page's encoding.`

So, is there an encoding that is used for the status page? Its a very specific note to include in documentation. Where does that encoding come from?

---

<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 18, 2023, 8:38pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921/2 "2023-05-18T20:38:33Z")

</div>

PerspectiveSessionInfo is the class, but the serialization used for the status pages is just GSON's default reflection based behavior, which doesn't care at all that all the fields in `com.inductiveautomation.perspective.gateway.session.PerspectiveSessionInfo` are private. That class does have all the info you need... just private. You'll have to reflect into it (or build your own GSON instance and have _it_ reflect into it) yourself.

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [May 18, 2023, 8:49pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921/3 "2023-05-18T20:49:39Z")

</div>

thanks, I'll look into that

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [May 22, 2023, 7:56pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921/4 "2023-05-22T19:56:19Z")

</div>

That worked, thanks. As well, do you know how to get a list of InternalSession objects for both Client and Designer sessions thats on the status page? The `getClientSessionsForProject` function in `PerspectiveSessionMonitor` is able to get all Client sessions, but not designers. How does this page get both?

---

<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, 2023, 9:53pm UTC](https://forum.inductiveautomation.com/t/how-is-the-perspective-sessions-status-page-info-found/73921/5 "2023-05-22T21:53:56Z")

</div>

`com.inductiveautomation.perspective.gateway.session.PerspectiveSessionMonitor#getSessionInfos` returns all session infos, from all projects. You can just filter that result list for the project name you care about.
