I am having an issue setting up so a user will always get their same session unless they log off. I have read several topics on this board about this and have tried all the suggestions but nothing seems to work.
The options in Local Group Policies (before you get to group policies) is set correctly based on what I understand
- The "terminate any disconnected session after" is set to never
- The "Only one session per user: The second session will capture the first one" option is selected
- The "Allow users reconnections... and the "Allow automatic reconnections" is checked
- This server is not on a domain but I changed the local group policy to restrict users to a single session to enabled (just in case)
Regardless of any setting, I am not able to get back to the same session. I can watch the session manager and as soon as I close the browser, the session goes to a disconnected state and the user will get a new session.
I am only using the HTML option and in my configuration, the user has only one assigned application which starts automatically after login.
Has anyone had this issue or know how to resolve. Thanks for any help, tips, or suggestions.
Problem - Reconnect User to Same Session
Re: Problem - Reconnect User to Same Session
Hello,
You should not set up the group policy settings AND the settings located in the admin tool for this purpose as it can lead to confusion, redundancy in these settings are not useful. Sometimes a reboot is necessary, if you are using group policy setting you can also open a cmd prompt and type in the command : gpupdate /force.
The group policy regarding connection settings is located in computer configuration / administrative template / windows components / remote desktop services / remote desktop session host / connections
- automatic reconnection is to be set to enabled to allow a disconnected session to be recaptured immediately in case of network failure.
- authorize only one session per user
You should not set up the group policy settings AND the settings located in the admin tool for this purpose as it can lead to confusion, redundancy in these settings are not useful. Sometimes a reboot is necessary, if you are using group policy setting you can also open a cmd prompt and type in the command : gpupdate /force.
The group policy regarding connection settings is located in computer configuration / administrative template / windows components / remote desktop services / remote desktop session host / connections
- automatic reconnection is to be set to enabled to allow a disconnected session to be recaptured immediately in case of network failure.
- authorize only one session per user
Olivier
TSplus support team administrator

TSplus support team administrator

Re: Problem - Reconnect User to Same Session
Thanks for the reply. I did a little more testing and found that using an RDP client, it works as expected. I can get back to my session just like a plain terminal server.
However, the browser behavior is a little different. I have tested on a Chrome browser In Windows, Dolphin browser on iPhone, and Silk browser on a Kindle and all behave the same way.
Two Issues I found:
1. If I open a browser session and start an application, then close the browser. I am unable to get the open session with the running application. It just starts a brand new session. I have watched the session manager from RDP and as soon as I close the browser, the session goes into a disconnected status. Upon re-connection, it just starts a new active session.
2. If I open a browser session on one device and leave it running. I then open a browser session using same account on another device expecting to "steal" the active session from the other device. It seems to disconnect the first session and always starts a new session.
I want any active session to persist until user logs off or is disconnected in the session manager. Is this possible?
I appreciate your help
However, the browser behavior is a little different. I have tested on a Chrome browser In Windows, Dolphin browser on iPhone, and Silk browser on a Kindle and all behave the same way.
Two Issues I found:
1. If I open a browser session and start an application, then close the browser. I am unable to get the open session with the running application. It just starts a brand new session. I have watched the session manager from RDP and as soon as I close the browser, the session goes into a disconnected status. Upon re-connection, it just starts a new active session.
2. If I open a browser session on one device and leave it running. I then open a browser session using same account on another device expecting to "steal" the active session from the other device. It seems to disconnect the first session and always starts a new session.
I want any active session to persist until user logs off or is disconnected in the session manager. Is this possible?
I appreciate your help
-
- Posts: 58
- Joined: Sun Jan 13, 2013 2:20 pm
Re: Problem - Reconnect User to Same Session
Hello,
Well, the first thing to do is to use the AdminTool "Group Policy" tools and I suggest you to check the following options:
- Allow automatic reconnections when a session is disconnected.
- Allow users reconection when a session is disconnected
- The user must reconnect from the same device
- Only one session per user . The second will be logoff
Also, edit the file C:\Program Files (x86)\TSplus\Clients\www\software\html5\settings.js
Change
W.send_logoff = true; //if true, by event of browser closing (if notificated by browser), the session disconnets and logoff command gets sent to session.
to
W.send_logoff = false; //if true, by event of browser closing (if notificated by browser), the session disconnets and logoff command gets sent to session.
And reboot
I think you will not be far from what you are expecting
Kind regards
John
Well, the first thing to do is to use the AdminTool "Group Policy" tools and I suggest you to check the following options:
- Allow automatic reconnections when a session is disconnected.
- Allow users reconection when a session is disconnected
- The user must reconnect from the same device
- Only one session per user . The second will be logoff
Also, edit the file C:\Program Files (x86)\TSplus\Clients\www\software\html5\settings.js
Change
W.send_logoff = true; //if true, by event of browser closing (if notificated by browser), the session disconnets and logoff command gets sent to session.
to
W.send_logoff = false; //if true, by event of browser closing (if notificated by browser), the session disconnets and logoff command gets sent to session.
And reboot
I think you will not be far from what you are expecting

Kind regards
John
Re: Problem - Reconnect User to Same Session
The w.send_logoff parameter did the trick. It seems to keep my session open between disconnects and reconnects are almost instant.
Thanks for the help!
Thanks for the help!