Sessions Disconnecting on XenDesktop 7.x and NetScaler 10.x with Session Reliability Enabled

Sessions Disconnecting on XenDesktop 7.x and NetScaler 10.x with Session Reliability Enabled

book

Article ID: CTX200841

calendar_today

Updated On:

Description

Session Reliability is configured and enabled and when user connections are going through a NetScaler 10.x Device their sessions are dropping or disconnecting.

By-passing the NetScaler 10.x device allows user sessions to not disconnect or drop.
Disabling the Session Reliability feature also allows sessions not to disconnect or drop through the NetScaler 10.x device.

If you examine the event logs of the XenDesktop Virtual Delivery Agent (VDA) when the issue occurs you will see the following events:

Event ID: 1006 
Message: The session has been interrupted.

Event ID: 1007
Message: The session has been resumed.

Environment

This software application is provided to you as is with no representations, warranties or conditions of any kind. You may use and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that: (a) the software application may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the software application fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the software application. In no event should the software application be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SOFTWARE APPLICATION, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the software application.

Resolution

If using Session Reliability ensure you do not have any of the ICA Keep Alive Citrix Computer Policies enabled as the features do not work together, then set the following registry keys on all XenDesktop Virtual Delivery Agents (VDAs):

[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\XTEConfig]
Name: CgpClientToServerKeepAlive
Type: REG_DWORD
Data: 0

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\XTEConfig]
Name: CgpClientToServerKeepAlive
Type: REG_DWORD
Data: 0

Note: If the XTEConfig registry key does not exist you must create it. What this registry setting does is tell the server to not look for a ICA keep alive packet from the client in order to keep the session active.
ICA Keep Alive packets are small network packets sent at pre defined intervals (Configured through Citrix Policies) to the server to keep an ICA session from being disconnected and are not needed when using Session reliability.

Problem Cause

The problem is the Citrix VDA is not receiving an ICA keep alive packet from the client when the connection is going through a NetScaler 10.x device which is resulting in a session drop or disconnect.

Issue/Introduction

In XenDesktop 7.x with Session reliability enabled users sessions are being dropped when the connections are going through a Netscaler 10.x device.

Additional Information

This is an alternative feature that can be used instead of Session Reliability they just cannot be used together. Refer to the following links:

Citrix Documentation - Configure Session Reliability

Citrix Documentation - ICA Keep alive policy settings