Sessions Disconnect regardless of settings

Get help with troubleshooting issues
Inertiauk
Posts: 13
Joined: Tue Mar 03, 2015 8:14 am

Re: Sessions Disconnect regardless of settings

Post by Inertiauk » Fri Nov 13, 2015 1:05 am

Even though TSplus (latest version , updated today) is set to 'use native windows shell when opening sessions'

When i look at a logged in user in task manager, I see login-session and logout when disconnected processes, surely they shouldn't be running ? is it ignoring the setting and using TSplus shell on login anyway for some reason ?

Please see screenshot ....



/edit -

if I manually kill the logoff on disconnect process for a user, then the problem is cured for that user, until they next log out or the server is restarted, their session remains alive if they disconnect, programs are still open when they reconnect! and they can take it over from another machine without it signing out!

So I think i'm onto something here, I could write a login script that kills the process which is a bit hacky but will solve my problem for now, I would rather solve it properly though!


/further edit -

For now I have renamed the logoff on disconnect executable to prevent it from being run, and this has cured the problem, as above I would rather find the correct cure, but I am happy to find a cure for now!
Attachments
Capture.PNG

chopcomp
Posts: 7
Joined: Mon Feb 10, 2014 3:37 pm

Re: Sessions Disconnect regardless of settings

Post by chopcomp » Fri Nov 13, 2015 3:02 pm

@Inetiauk your hack seems to have fixed my issue as well great catch

i did notice when using the html5 client I must go to start and disconnect I can not simply close the browser tab or it will automatically log off the session, but if I do start --> disconnect the session stays open.


also i have noticed the last few upgrades that the logondisconnect.exe has to be killed manually for the upgrades to work if not it get stuck trying to upgrade, maybe this is related?

Inertiauk
Posts: 13
Joined: Tue Mar 03, 2015 8:14 am

Re: Sessions Disconnect regardless of settings

Post by Inertiauk » Fri Nov 13, 2015 6:15 pm

chopcomp wrote:@Inetiauk your hack seems to have fixed my issue as well great catch

i did notice when using the html5 client I must go to start and disconnect I can not simply close the browser tab or it will automatically log off the session, but if I do start --> disconnect the session stays open.


also i have noticed the last few upgrades that the logondisconnect.exe has to be killed manually for the upgrades to work if not it get stuck trying to upgrade, maybe this is related?
Glad its helped you, lets hope there is a proper fix for this soon!

I dont use the html5 client, just rdp client, so i haven't noticed this,
If any users are logged in via TSplus then it will need to be killed, I use the console to upgrade mine, I make sure all users are logged out, then connect via SimpleHelp (or teamviewer or similar will work)

User avatar
admin
Site Admin
Posts: 1649
Joined: Wed Sep 05, 2012 6:38 am

Re: Sessions Disconnect regardless of settings

Post by admin » Mon Nov 16, 2015 11:38 am

Hello,

I have forwarded this issue to our development team, you should not have to rename any of TSplus programs as it may result in unpredictable behaviors.

The behavior of session disconnection is different for HTML5 web client.
Open a windows explorer and locate the setting.js file in C:\Program Files (x86)\TSplus\Clients\www\software\html5
Edit this file with notepad and locate the parameter :

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.

Set this setting to false so that your client browser does not send a logoff command when tab or browser is closed. This feature was made so that portable devices are able to logoff their session more easily.
Olivier
TSplus support team administrator
Image

Inertiauk
Posts: 13
Joined: Tue Mar 03, 2015 8:14 am

Re: Sessions Disconnect regardless of settings

Post by Inertiauk » Mon Nov 16, 2015 12:19 pm

Could you confirm please....

Should those processes run when it is set to use Windows shell on the session opening settings ?

Am I correct it's a sign the setting is being ignored if they are running ?

Thanks

John
Posts: 84
Joined: Sun Sep 30, 2012 7:10 am

Re: Sessions Disconnect regardless of settings

Post by John » Thu Nov 19, 2015 10:07 am

Hello,

Could you check the following : Open a Windows explorer and locate the C:\Program Files (x86)\TSplus\Userdesktop\files folder. Look for a onesession.txt file, if present, delete it. It should prevent the logoff on disconnect process to launch.

Inertiauk
Posts: 13
Joined: Tue Mar 03, 2015 8:14 am

Re: Sessions Disconnect regardless of settings

Post by Inertiauk » Thu Nov 19, 2015 11:25 am

I will give this a go out of office hours.

Thanks

Post Reply