[Unreal] How to check if a Player is still connected to the Server?

Is there a function which I can call to check if a PlayerSession is still active?

Even though I try to implement a function to remove PlayerSessions when a Player manually disconnects from the GameSession ([Unreal] How to remove a PlayerSession when Player leaves a GameSession? - #4 by chrisgong) a Player may timeout, or close the game window - avoiding any functions to be run on the client side.

Ideally I call a Ping to connected PlayerSession IP, and on timeout terminate that Session.

#GameLift

Hi @Lektrolical

Please see [Unreal] How to remove a PlayerSession when Player leaves a GameSession? - #10 by JamesM_Aws to see if we can understand why your RemovePlayerSession doesn’t work.

You should be able to call DescribePlayerSessions, either from the GameLiftServerSDK or the AWS SDK/CLI and see that the player session is now in COMPLETE status [once your player is disconnected and you called RemovePlayerSession]