Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
We understand from your query that you are experiencing an issue reconnect the user session once it disconnects.
After Remote Desktop client loses its connection to the remote desktop, the client can't immediately reconnect. The user receives one of the following error messages:
- The client couldn't connect to the terminal server because of a security error. Make sure you are signed in to the network, then try connecting again.
- Remote Desktop disconnected. Because of a security error, the client could not connect to the remote computer. Verify that you are logged onto the network and then try connecting again.
Please go through the troubleshooting steps using this link: https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/rdp-client-disconnects-cannot-reconnect-same-session
If you have any further queries, do let us know.
If the answer is helpful, please click "Accept Answer" and "Upvote it."