Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. In addition, quickly terminating an idle session will free up resources committed by the managed network element. Terminating network connections associated with communications sessions includes, for example, d-allocating associated TCP/IP address/port pairs at the operating system level or deallocating networking assignments at the application level if multiple application sessions are using a single, operating system-level network connection. This does not mean that the device terminates all sessions or network access; it only ends the inactive session and releases the resources associated with that session.
Set the idle timeout value to 10 minutes or less on all configured login classes as shown in the example below: SW1(config)#line vty 0 4 SW1(config-line)#exec-timeout 10 0 SW1(config-line)#exit SW1(config)#line con 0 SW1(config-line)#exec-timeout 10 0 SW1(config-line)#exit SW2(config)#ip http timeout-policy idle 600 life nnnn requests nn