I have a Windows server whose only job is to run javascript which is injected into an open webpage in the Chrome browser. The javascript runs perfectly while the RDP session is open. The second I 'X' out of the RDP session, the application stops functioning (I can see it not doing the required actions on the webpage in a browser on my local PC). I re-login to RDP and the webpage is still open and functions as if it never stopped. It appears either Chrome goes to sleep, the network goes to sleep, javascript stops running--I'm not sure.
I already tried changes for RDP related to Group Policy and a Terminal Server registry key fix here: https://www.anyviewer.com/how-to/keep-rdp-session-alive-0007.html#:~:text=Click%20on%20%E2%80%9CSet%20time%20limit,and%20then%20select%20%22Never%22. This didn't work.
To be clear, I am not logging out of the RDP session or the user account--just hitting the X. Everything is exactly where I left off when I RDP back in and functions normally again.
Overall, how can I keep the Chrome window and/or javascript and/or network alive after I close the RDP window?