As per my understanding when the user disconnect the existing session, after 2 hrs of disconnect the VDI desktop is supposed to log off.
In case if the above is not happening, we can check below :
1: Check the userini string is set as per KB: https://kb.vmware.com/s/article/1028975
2: Also, you can add a View LDAP attribute, pae-DirtyVMPolicy under OU=Server Groups, DC=vdi, DC=vmware, DC=int, and set the values below for the attribute.
pae-DirtyVMPolicy=2: Automatically refresh virtual machines that were not cleanly logged off. View Client users can access these desktops after the refresh operation is completed