# \[16426\] Incorrect SessionID from system.perspective.getSessionInfo()

**URL:** <https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036>\
**Category:** Ignition Early Access\
**Created:** [April 19, 2020, 2:50pm UTC](https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036 "2020-04-19T14:50:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [April 19, 2020, 2:50pm UTC](https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036/1 "2020-04-19T14:50:59Z")

</div>

Ignition 8.0.11

It looks like system.perspective.getSessionInfo() is returning the wrong sessionID for the designer.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/56ecafa725a67d7d4b69cf06d7d7f41d942a4f31.png)

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [May 1, 2020, 11:49pm UTC](https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036/2 "2020-05-01T23:49:11Z")

</div>

Looks like this has always been the case as far as I can tell. I’ve made a ticket to investigate and see if we can align them (or document the difference if there’s a valid reason they are and must remain different). Thanks for the heads up.

---

<div class="post-metadata">

**Author:** ![Kevin.McClusky](https://avatars.discourse-cdn.com/v4/letter/k/47e85d/32.png) [@Kevin.McClusky](https://forum.inductiveautomation.com/u/Kevin.McClusky)\
**Post date:** [May 18, 2020, 6:55pm UTC](https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036/3 "2020-05-18T18:55:47Z")

</div>

It should be noted: if you’re calling your script from somewhere that has [component methods](https://docs.inductiveautomation.com/display/DOC80/Perspective+Component+Methods) available, calling `self.session.info.id` will give you an ID that matches the one in `getSessionInfo()`.

And if the only think you need that ID for is the session info, `self.session.info` may give you everything you need, without needing to call `.getSessionInfo()`.

---

<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:** [September 16, 2020, 8:39pm UTC](https://forum.inductiveautomation.com/t/16426-incorrect-sessionid-from-system-perspective-getsessioninfo/34036/4 "2020-09-16T20:39:13Z")

</div>

A post was merged into an existing topic: [Reading a session variable from a python scipt](https://forum.inductiveautomation.com/t/reading-a-session-variable-from-a-python-scipt/38760/6)
