# Detect if a session doesn't exist anymore

**URL:** <https://forums.unrealengine.com/t/detect-if-a-session-doesnt-exist-anymore/1245293>\
**Category:** Programming & Scripting\
**Tags:** online-session, unreal-engine\
**Created:** [July 30, 2023, 11:47pm UTC](https://forums.unrealengine.com/t/detect-if-a-session-doesnt-exist-anymore/1245293 "2023-07-30T23:47:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KTML\_Films](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KTML\_Films](https://forums.unrealengine.com/u/KTML_Films)\
**Post date:** [July 30, 2023, 11:47pm UTC](https://forums.unrealengine.com/t/detect-if-a-session-doesnt-exist-anymore/1245293/1 "2023-07-30T23:47:17Z")

</div>

In my application users can host sessions (listen servers) and then I’m using the Blueprint “Find Session” node to look for sessions which I then display in a server browser. Users can then select an entry from the server browser and join a session (this works well so far). I’m trying to do some error handling now and I’m stuck on the following case:

(1) User-1 hosts a session

(2) User-2 opens the server browser and finds the sessions of User-1 (the session is now displayed in User-2’s server browser)

(3) User-1 closes his session (Blueprint → Destroy Session → Quit)

(4) User-2 then selects the session of User-1 to join (the session shouldn’t exist anymore in my understanding)

(5) Using the “Join Session” Blueprint node, I attempt to connect to the session

Surprisingly, the Join Session node returns with “On Success” but obviously no level travel happens.

I would like to know if there is a way to detect this case “A session that has previously been created is now closed”.
