In Windows Server 2008, you can set remote user disconnect from his session or logoff from this session automatically. This is the way :
1. Open Local Group Policy Editor. You can open it using Run and type gpedit.msc then press Enter key.
2. Set the policy here Local Computer Policy > User Configuration > Administrative Templates > Windows Component > Terminal Services > Terminal Server > Session Time Limits
3. Set time limit
4. To take effect, you must restart your server
1. Open Local Group Policy Editor. You can open it using Run and type gpedit.msc then press Enter key.
2. Set the policy here Local Computer Policy > User Configuration > Administrative Templates > Windows Component > Terminal Services > Terminal Server > Session Time Limits
3. Set time limit
4. To take effect, you must restart your server