# Pass variables on JoinSession

**URL:** <https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391>\
**Category:** Multiplayer & Networking\
**Tags:** parameters, variables, Networking, unreal-engine, session, question\
**Created:** [March 17, 2015, 2:20pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391 "2015-03-17T14:20:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 17, 2015, 2:20pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391/1 "2015-03-17T14:20:35Z")

</div>

I have the basic stuff up for creating and joining online game sessions in blueprints.

But I’m stuck on figuring out how to pass a variable, such as username, when you join a session?

---

<div class="post-metadata">

**Author:** ![Ryan\_Gerleve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Gerleve](https://forums.unrealengine.com/u/Ryan_Gerleve)\
**Post date:** [March 17, 2015, 6:02pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391/2 "2015-03-17T18:02:50Z")

</div>

Hi ,

The session joining functionality in Blueprint doesn’t support custom variables at the moment, unfortunately. Once connected, you can always send values to the server via a “Run on server” event.

Also note that if you’re using Steam, player’s nicknames will automatically be set to their Steam name.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 17, 2015, 7:11pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391/3 "2015-03-17T19:11:38Z")

</div>

The problem is that once I’ve joined the session, I don’t have access to the variable anymore. Is there a neat spot I can save it off and have access to it even if I join and leave a bunch of sessions all over?

---

<div class="post-metadata">

**Author:** ![Ryan\_Gerleve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Gerleve](https://forums.unrealengine.com/u/Ryan_Gerleve)\
**Post date:** [March 17, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391/4 "2015-03-17T19:40:59Z")

</div>

You can try using a custom GameInstance class, the GameInstance persists across level changes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b6ecf022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b6ecf022](https://forums.unrealengine.com/u/anonymous_user_b6ecf022)\
**Post date:** [March 18, 2015, 12:38pm UTC](https://forums.unrealengine.com/t/pass-variables-on-joinsession/311391/5 "2015-03-18T12:38:30Z")

</div>

That works, thank you.  
Now it’s just the issue of getting it added to an array on the server…
