# Event on "Server destroyed session" or "Lost connection"

**URL:** <https://forums.unrealengine.com/t/event-on-server-destroyed-session-or-lost-connection/441145>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, sessions, unreal-engine, Blueprint, question\
**Created:** [January 12, 2019, 9:12am UTC](https://forums.unrealengine.com/t/event-on-server-destroyed-session-or-lost-connection/441145 "2019-01-12T09:12:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3af026a2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3af026a2](https://forums.unrealengine.com/u/anonymous_user_3af026a2)\
**Post date:** [January 12, 2019, 9:12am UTC](https://forums.unrealengine.com/t/event-on-server-destroyed-session-or-lost-connection/441145/1 "2019-01-12T09:12:47Z")

</div>

Does UE4 have any built in events to get client know about “server destroyed session” and let them make right actions for disconnecting?

---

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [January 12, 2019, 2:21pm UTC](https://forums.unrealengine.com/t/event-on-server-destroyed-session-or-lost-connection/441145/2 "2019-01-12T14:21:58Z")

</div>

Justify your question please.

---

<div class="post-metadata">

**Author:** ![rubm123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rubm123/32/476292_2.png) [@rubm123](https://forums.unrealengine.com/u/rubm123)\
**Post date:** [November 1, 2022, 7:21pm UTC](https://forums.unrealengine.com/t/event-on-server-destroyed-session-or-lost-connection/441145/3 "2022-11-01T19:21:26Z")

</div>

I need the same.

When the server calls `GameSession->KickPlayer()`, the client loses connection but the client has to destroy the session, too. Otherwise it stays alive and prevents the client from joining or creating sessions until they restart the game.
