logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mknight04  
#1 Posted : Friday, September 22, 2017 10:34:06 PM(UTC)
mknight04


Rank: Guest

Joined: 9/22/2017(UTC)
Posts: 2

Attempting to disconnect an active session via a custom extension. If i iterate over session.ActiveConnections, i see a Guest and Host type connected. Regardless of which one i disconnect (or even both) using SessionManagerPool.Demux.DisconnectSessionConnection(session.SessionID,s.ConnectionID), the web interface will show that leg disconnected, but the session itself remains active. The operator can still move the mouse, interact with the user, etc.

Is there something else that needs to be done to force it to disconnect? These are all Access sessions that i'm working with.
Ben B  
#2 Posted : Tuesday, September 26, 2017 5:17:56 PM(UTC)
Ben B


Rank: Administration

Medals: Level 2: Lent a Helping Hand! 10 Thanks!

Joined: 10/2/2015(UTC)
Posts: 281

Thanks: 1 times
Was thanked: 58 time(s) in 54 post(s)
Originally Posted by: mknight04 Go to Quoted Post
Attempting to disconnect an active session via a custom extension. If i iterate over session.ActiveConnections, i see a Guest and Host type connected. Regardless of which one i disconnect (or even both) using SessionManagerPool.Demux.DisconnectSessionConnection(session.SessionID,s.ConnectionID), the web interface will show that leg disconnected, but the session itself remains active. The operator can still move the mouse, interact with the user, etc.

Is there something else that needs to be done to force it to disconnect? These are all Access sessions that i'm working with.


You will want to add a QueuedForceDisconnect event to the session connection. The method to do this is implemented in the stock PageService.ashx; the client can call this like so:

Code:

SC.service.AddEventToSessionConnection(
	sessionInfo.SessionGroupPath[0],
	sessionIDs[0],
	commandArgument.ConnectionID,
	SC.types.SessionEventType.QueuedForceDisconnect
);


If you want to do this server-side, you can use the following method in C#:

Code:

SessionManagerPool.Demux.AddSessionConnectionEvent(
	sessionID,
	connectionID,
	SessionEventType.QueuedForceDisconnect,
	SessionEventAttributes.None,
	null
);
ScreenConnect Team
mknight04  
#3 Posted : Tuesday, September 26, 2017 6:54:06 PM(UTC)
mknight04


Rank: Guest

Joined: 9/22/2017(UTC)
Posts: 2

Thanks Ben, that worked perfectly.
Users browsing this topic
Similar Topics
Disconnect session no longer working in V. 5.1.8208.5485 (Bug Reports)
by dbfletcher 1/8/2015 1:09:15 PM(UTC)
Disconnect session from the host (General Information)
by cfut 4/9/2012 11:27:39 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.