The sample code for account manager and the server connection session