The VDI session disappears during desktop launch process.
Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.
If a virtual machine containing a desktop VDA closes before the logon process completes, you can allocate more time to the process. The default for 7.6 and later versions is 180 seconds (the default for 7.0-7.5 is 90 seconds).
On the machine (or the master image used in a Machine Catalog), set the following registry key:
Key: HKLM\SOFTWARE\Citrix\PortICA
Value: AutoLogonTimeout
Type: DWORD
Specify a decimal time in seconds, in the range 0-3599.
If you change a master image, update the catalog.
Note: This setting applies only to VMs with desktop (workstation) VDAs; Microsoft controls the logon timeout on machines with server VDAs.
The issue was a result of the file server storing the user profile.