This article contains information on duplicate session IDs appearing in the Access Management Console or Presentation Server Console when viewing session information.
When administering a server farm, you might notice duplicate instances of a specific session ID on the same server in the management consoles. Native Terminal Services utilities report correct session information, which is only one session ID instance per server.
The IMA Service tracks all applications that are launched, including child processes, to be able to report application usage information even if a parent process (or a launcher script) terminates.
Example scenario:
A user connects to launch.bat.
Launch.bat starts notepad.exe.
Launch.bat terminates.
However notepad.exe is still running.
Previously, the IMA Service would not track applications correctly for scenarios similar to the preceding example. Citrix made specific code changes to allow the IMA Service to provide better tracking in these scenarios.
However, there are still some rare situations that cause a session record to be reinserted into the dynamic store tables even though that particular session already has an existing record. In this particular case, a duplicate session record exists in the dynamic store and therefore shows up in the Access Management Console or Presentation Server Console. This is only cosmetic and only affects management utilities that query IMA for session information.
Duplicate sessions seen in the Access Management Console or Presentation Server Console have no impact to license allocation–that is, only one (1) license is consumed. The QueryDS.exe utility (included with the Presentation Server media) can be used to look at the dynamic store and see the duplicate records.
Sample QueryDS Output:
queryds /table:Conn_Sessions [Conn_Sessions]: 2 records. name: 4dc6:1:Notepad:478e6f6b:11 host: FTLVJTOBONPS45 zone: 10.12.32.0 Version[Session] : 1 ProductType: 12 SessionId: 1 ClientName: FTLRJTOBONXPSP2 UserName: administrator SessionName: ICA-tcp#4\ LogonTime: 0000-0117-8462af67 ServerName: FTLVJTOBONPS45 AppName: Notepad SessionConnectionType : 1 ClientNameIndex : FTLRJTOBONXPSP2 DomainUserNameIndex : NOSFERATU\administrator HostId: 19910 UserDomain: NOSFERATU Protocols: 1 DataType: 1 ServerType: 1 ClientType: 1 LaunchedBrowserName : Notepad InitialBrowserName : Notepad SessionState: 0 FullyQualifiedCredentials : SessionAuthenticationType : 00080022 : 0 AccessSessionGuid : IsLastSessionApp : 0 DeviceId: name: 4dc6:1:Notepad:478e6f48:e host: FTLVJTOBONPS45 zone: 10.12.32.0 Version[Session] : 1 ProductType: 12 SessionId: 1 ClientName: FTLRJTOBONXPSP2 UserName: administrator SessionName: ICA-tcp#4 LogonTime: 0000-0117-8462af67 ServerName: FTLVJTOBONPS45 AppName: Notepad SessionConnectionType : 1 ClientNameIndex : FTLRJTOBONXPSP2 DomainUserNameIndex : NOSFERATU\administrator HostId: 19910 UserDomain: NOSFERATU Protocols: 1 DataType: 1 ServerType: 1 ClientType: 1 LaunchedBrowserName : Notepad InitialBrowserName : Notepad SessionState: 0 FullyQualifiedCredentials : SessionAuthenticationType : 00080022 : 0 AccessSessionGuid : IsLastSessionApp : 1 DeviceId: LogonString: NOSFERATU\administrator ADSDomain: \administrator@Nosferatu.ctxtx
Use the native Terminal Services tools such as qwinsta.exe or Terminal Services Manager to view session information if duplicate session IDs are encountered when using the Access Management Console or Presentation Server Console. Because of the level of complexity with the current design of IMA, this symptom is considered a current limitation of the IMA Service up to and including version 5.0. Changes were made starting version 6.0 that eradicates this issue completely.