SNA Server Handling of 3270 LU Session Cleanup

Last reviewed: April 17, 1997
Article ID: Q132436
The information in this article applies to:
  • Microsoft SNA Server for Windows NT, versions 2.0, 2.1, 2.11 and 3.0

SUMMARY

When using pooled 3270 LUs with SNA Server, a 3270 user may access the previous user's host application session. This occurs when the host did not clean up the 3270 application after receiving a TERM-SELF message from SNA Server on the session. If this occurs, the NOTERMSELF:REG_SZ:YES registry setting should be used to force SNA Server to send an UNBIND(Cleanup) when the user ends their 3270 session, or when the user's client-server LAN session is lost.

The NOTERMSELF registry setting is described below, and in Appendix C of the SNA Server 2.1 or 3.0 "Reference Guide".

MORE INFORMATION

When a 3270 user closes their emulation session, or if the SNA Server client loses its LAN connection to the SNA Server, SNA Server sends a TERM-SELF on the SSCP-LU session to request that the host unbind the PLU-SLU session. On some host systems, this TERM-SELF message does not cause the 3270 application session to be cleaned up.

To force SNA Server to send an UNBIND(Cleanup) to the host:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

  1. Run Registry Editor (REGEDT32.EXE).

  2. From the HKEY_LOCAL_MACHINE subtree, go to the following key:

          \SYSTEM\CurrentControlSet\Services\SnaServr\Parameters
    

  3. From the Edit menu, choose Add Value.

  4. Add the following:

          Value Name: NOTERMSELF
          Data Type: REG_SZ
          String: YES
    

  5. Choose OK.

When this variable is set to YES, 3270 sessions are terminated directly by sending UNBIND(cleanup). Otherwise, a TERM-SELF is sent to solicit UNBIND from the host. Setting this variable to YES is a workaround for host-based session monitors that mark the LU as inactive after the TERM-SELF sequence, or do not properly unbind the application session.

If CICS is being used and the CICS "dedicated LU" feature is enabled at the host, or if certain host session monitors are being used (such as "TPX"), the host 3270 application session may not be cleaned up even if SNA Server is configured to send Unbind(cleanup).

When using dedicated LUs, CICS preserves the user's host application session even when the user were to turn off their 3270 terminal. So, this host feature assumes that a given LU will always be accessed by a specific user. If you want to use the dedicated LU feature, consider assigning specific 3270 LUs to specific users using SNA Server Admin, and do not use pooled 3270 LUs. Otherwise, if a user disconnects from their emulation session, the next user who acquires the same 3270 LU (through the use of a 3270 pool) reconnects to the same host application state of the previous user.


Additional query words: prodsna notermself unbind
Keywords : kbenv kbnetwork ntconfig nthowto ntnetserv sna3270
Version : 2.0 2.1 2.11 3.0
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.