# How to read session variables of one session into another session of Perspective?

**URL:** <https://forum.inductiveautomation.com/t/how-to-read-session-variables-of-one-session-into-another-session-of-perspective/102531>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 19, 2025, 7:19am UTC](https://forum.inductiveautomation.com/t/how-to-read-session-variables-of-one-session-into-another-session-of-perspective/102531 "2025-02-19T07:19:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijit.patil](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@abhijit.patil](https://forum.inductiveautomation.com/u/abhijit.patil)\
**Post date:** [February 19, 2025, 7:19am UTC](https://forum.inductiveautomation.com/t/how-to-read-session-variables-of-one-session-into-another-session-of-perspective/102531/1 "2025-02-19T07:19:10Z")

</div>

Hello,

I need to loop through all active Perspective sessions and check if the currently logged-in user (using `self.session.props.auth.user.userName`) is already logged into another session. If the user is found to be logged in multiple sessions, I want to alert them.

Thanks.

---

<div class="post-metadata">

**Author:** ![chrisl](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@chrisl](https://forum.inductiveautomation.com/u/chrisl)\
**Post date:** [February 19, 2025, 7:34am UTC](https://forum.inductiveautomation.com/t/how-to-read-session-variables-of-one-session-into-another-session-of-perspective/102531/2 "2025-02-19T07:34:52Z")

</div>

Hi there, I think this function may help with your problem, system.perspective.getSessionInfo. You can check details in the ignition documentation

---

<div class="post-metadata">

**Author:** ![abhijit.patil](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@abhijit.patil](https://forum.inductiveautomation.com/u/abhijit.patil)\
**Post date:** [February 27, 2025, 5:15am UTC](https://forum.inductiveautomation.com/t/how-to-read-session-variables-of-one-session-into-another-session-of-perspective/102531/3 "2025-02-27T05:15:08Z")

</div>

Thanks chrisl

This is exactly what I was looking for.
