Microsoft Knowledge Base Email Alertz

RemoteApp sessions are disconnected when all RemoteApp windows and user-launched notification area icons are closed

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 2345390 - Last Review: August 18, 2010 - Revision: 1.0

RemoteApp sessions are disconnected when all RemoteApp windows and user-launched notification area icons are closed

SUMMARY

When a user launches a Remote Desktop Services or Terminal Services RemoteApp, a Remote Desktop session is created in which the application runs. Any subsequent RemoteApps that are launched from the same client before the session is logged off will run in the same session. Additionally, any notification area (system tray) icons that are launched by the user will also run in the same session.

When all active application windows and all user-launched notification area icons are closed, the session remains active for 20 more seconds. This allows time for the user to launch another application, and for applications to display final messages or perform other closing tasks. If another application or system tray icon is not launched within that time, the RDP session is disconnected. 


MORE INFORMATION

Leaving the session in a disconnected state allows subsequent RemoteApps to launch much more quickly. When a new RemoteApp is launched the session is simply reconnected instead of incurring the overhead of starting a new one.

By default disconnected RemoteApp sessions will remain in a disconnected state indefinitely. This behavior can be modified by a new Group Policy setting introduced in Windows Server 2008, "Set time limit for logoff of RemoteApp sessions". This setting is located in Group Policy under both Computer Configuration and User Configuration:
  • Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits
  • User Configuration\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Session Time Limits
To enable and configure the policy setting:
  1. Log on to the terminal server as an administrator.
  2. Start the Local Group Policy Editor. To do this, click Start, click Run, type gpedit.msc, and then click OK.
  3. Locate the appropriate node under Computer Configuration or User Configuration as shown above.
  4. In the right pane of the Local Group Policy Editor, double-click "Set time limit for logoff of RemoteApp sessions".
  5. Click Enabled.
  6. In the RemoteApp session logoff delay list, select the desired time for logoff delay, and then click OK.
  7. At a command prompt type "gpupdate" and press ENTER to force the policy to refresh immediately on the local computer.
After the policy setting is enabled, disconnected RemoteApp sessions will be logged off after the configured time delay. If other settings that control logging off disconnected Remote Desktop or Terminal Services sessions (not just RemoteApp sessions) conflict with the above setting, then the policy configured for the shortest time period will take effect. For example, if the “Set time limit for disconnected sessions” policy setting is configured for a shorter time period than "Set time limit for logoff of RemoteApp sessions", the former will take effect.

This topic is discussed in more detail in the following blog post:
http://blogs.msdn.com/b/rds/archive/2007/09/28/terminal-services-remoteapp-session-termination-logic.aspx (http://blogs.msdn.com/b/rds/archive/2007/09/28/terminal-services-remoteapp-session-termination-logic.aspx)
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.

APPLIES TO
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Standard
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
  • Windows Server 2008 R2 Foundation
Keywords: 
kbrd KB2345390
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate