use the ‘log off when inactive timer’
Computer configuration > Policies > Administrative template > Windows component > Remote Desktop services > remote desktop session host > session time limits > Set to 8 hours from 1day
Application Configuration
Select user mode policies> edit Unfiltered policy in citrix Policies>
>Disconnected Session Timer enabled
>Disconnected Session Timer interval 300mins