# Client tag for the specific session?

**URL:** <https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [July 1, 2021, 1:50pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404 "2021-07-01T13:50:57Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [July 1, 2021, 1:50pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/1 "2021-07-01T13:50:58Z")

</div>

I have a window where a user can sendMessage to the gateway to start a long process, which upon finishing sends a message back to the client message handler to alert the user it is finished. Now, I have a user who likes to use multiple instances of the client - up to 6, and just testing, all 6 screens get the little popup informing him the process is done. I figure this is because I am using the `user=` argument when the gateway process is complete to inform the client.

It seems like I should want to use the `clientSessionId=` argument instead. However, I don’t see a client tag that corresponds to the session ID. Is there a built in way to get the session id that I can pass onto the gateway message handler so that only the client that started the process gets the message back? Or is this a client tag I have to build and manage myself?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 1, 2021, 1:59pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/2 "2021-07-01T13:59:36Z")

</div>

I think you want `system.util.getClientId()`.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 1, 2021, 2:01pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/3 "2021-07-01T14:01:47Z")

</div>

> [@Kevin.Herron](#):
>
> system.util.getClientId()

thats only for vision i think

system.util.getSessionInfo() has a clientId's tho, but its in a list of all the sessions

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 1, 2021, 2:22pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/4 "2021-07-01T14:22:47Z")

</div>

Yes, it’s only for Vision. Perspective has its own version.

He mentioned client tags though, so I assume this is Vision he is asking about.

---

<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:** [July 1, 2021, 2:23pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/5 "2021-07-01T14:23:30Z")

</div>

Correct, it was for vision, and this solved my problem.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [July 1, 2021, 2:27pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/6 "2021-07-01T14:27:35Z")

</div>

What is the version for perspective?  
I only find the getSessionInfo but it return a list of all active sessions, not the current one.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [July 1, 2021, 2:34pm UTC](https://forum.inductiveautomation.com/t/client-tag-for-the-specific-session/48404/7 "2021-07-01T14:34:37Z")

</div>

You can get all the session infos using [system.perspective.getSessionInfo](https://docs.inductiveautomation.com/display/DOC81/system.perspective.getSessionInfo) or you can get the id of the running session out of the [Session Properties](https://docs.inductiveautomation.com/display/DOC81/Session+Properties) directly.
