UNC Connections Don't Disconnect for 10 Minutes (122121)



The information in this article applies to:

  • Microsoft LAN Manager 2.1
  • Microsoft LAN Manager 2.1a
  • Microsoft LAN Manager 2.2
  • Microsoft LAN Manager 2.2a
  • Microsoft LAN Manager 2.2b

This article was previously published under Q122121

SYMPTOMS

When you quit an application that was launched through a universal naming convention (UNC) connection, the server shows the session between the workstation and the server as still active. If you do a NET USE command from the workstation, however, it shows that the connection no longer exists.

For example, assume you have an icon in Windows to run Excel from the server with a command line of \\SERVER\SHARE\EXCEL.EXE. After you run Excel from this icon and then quit Excel, the server shows that the session is still active.

CAUSE

By default, the network session stays active for 10 minutes after a workstation stops its session with the server.

WORKAROUND

You can edit the LANMAN.INI file on the workstation to change the disconnect time from the default of 10 minutes. To do this, add the following entry to the workstation's LANMAN.INI file in the [workstation] section
   keepconn=nnn
				
where nnn is the number of seconds the workstation maintains the session for an inactive UNC connection to a shared resource. The default is 600 seconds. The keepconn parameter is only for UNC connections, not redirected drives; use the AutoDisconnect parameter in the LANMAN.INI file on the server to free up redirected drives.

NOTE: There is a brief reference to the keepconn parameter on page 238 of the Microsoft LAN Manager Administrator's Guide.

After you modify the LANMAN.INI file on the workstation, stop the workstation and restart it for the change to take affect.

Modification Type:MajorLast Reviewed:9/30/2003
Keywords:KB122121