# getSessionInfo() bug?

**URL:** <https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645>\
**Category:** Ignition\
**Created:** [April 15, 2021, 4:10pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645 "2021-04-15T16:10:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![isabellapitco](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@isabellapitco](https://forum.inductiveautomation.com/u/isabellapitco)\
**Post date:** [April 15, 2021, 4:10pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/1 "2021-04-15T16:10:45Z")

</div>

We recently updated our project to 8.1.4, and it’s caused a weird issue. We run an onStartup script when the user logs in to grab their ipAddress for later authentication using the following script:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/88609cd6549a8b7b2fb30a8bcd82c01ae0410698.png)

This was working perfectly fine before the update. From the old reliable print method, I’ve found the script just stops running after that first line, and doesn’t return anything.

Is anyone else experiencing a similar issue?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [April 15, 2021, 4:12pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/2 "2021-04-15T16:12:50Z")

</div>

Wait that print worked at some point? Think you’re supposed to be using `system.perspective.print` to be able to print to the browser log.

Do you get any errors appearing in the console/browser console?

---

<div class="post-metadata">

**Author:** ![ryanjmclaughlin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryanjmclaughlin/32/4318_2.png) [@ryanjmclaughlin](https://forum.inductiveautomation.com/u/ryanjmclaughlin)\
**Post date:** [April 15, 2021, 4:23pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/3 "2021-04-15T16:23:22Z")

</div>

not sure about the getSessionInfo(), but why not just use [system.net.getIpAddress - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.net.getIpAddress)

It would be a lot simpler if your just trying to get the client IP. OR just `session.props.host`

---

<div class="post-metadata">

**Author:** ![isabellapitco](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@isabellapitco](https://forum.inductiveautomation.com/u/isabellapitco)\
**Post date:** [April 15, 2021, 4:31pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/4 "2021-04-15T16:31:13Z")

</div>

I am using system.perspective.print for the most part, i just removed them for the sake of this screenshot haha. But that print does work! it just goes to the wrapper.log

And not really, the only error I’m getting is: The Components object is deprecated. It will soon be removed.

---

<div class="post-metadata">

**Author:** ![isabellapitco](https://avatars.discourse-cdn.com/v4/letter/i/ebca7d/32.png) [@isabellapitco](https://forum.inductiveautomation.com/u/isabellapitco)\
**Post date:** [April 15, 2021, 4:36pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/5 "2021-04-15T16:36:31Z")

</div>

Thanks for the advice, I’ll look into this 🙂

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 15, 2021, 7:03pm UTC](https://forum.inductiveautomation.com/t/getsessioninfo-bug/45645/6 "2021-04-15T19:03:16Z")

</div>

Print will log to the wrapper log, which in this case would make sense as she’s logging client logins
