SNA Server Handling of 3270 LU Session Cleanup

ID: Q132436


The information in this article applies to:
  • Microsoft SNA Server, versions 2.0, 2.1, 2.11, 2.11 SP1, 2.11 SP2, 3.0, 3.0 SP1, 3.0 SP2, 3.0 SP3, 4.0, 4.0 SP1, 4.0 SP2


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 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 nthowto ntnetserv ntconfig sna3270 sna211 sna211sp1 sna211sp2 sna3 sna3sp1 sna3sp2 sna3sp3 sna4 sna4sp1 sna4sp2 sna2 sna21
Version : WINDOWS:2.0,2.1,2.11,2.11 SP1,2.11 SP2,3.0,3.0 SP1,3.0 SP2,3.0 SP3,4.0,4.0 SP1,4.0 SP2
Platform : WINDOWS
Issue type :


Last Reviewed: September 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.