User guide
set web
Chapter 2 Command Descriptions 243
set web
Device support This command is supported in all devices that support the default Web user
interface.
Purpose Controls the timeout period for Web UI connections, or resets an active
Web UI connection.
The timeout period refers to an inactivity timeout, a configurable period
after which a user will be logged out of the Web UI. The timeout is reset
every time the user views a page. Inactivity timeouts are useful for security
purposes, to ensure that a connection is not left open if a user forgets to log
out. Connections can also be manually closed by using the
"command=reset" option to cause the current connection to be
automatically logged out. This is useful if the current connection was not
properly logged out.
Required
permissions
Root privileges are required to use this command.
Syntax The “set web” options must be used individually and not combined in a
single command.
Set the timeout period for a logged-in session on the Web UI
set web [timeout=0-65534]
Reset active connection
set web [command=reset]
Options timeout=0–65534
The timeout period for Web UI connections. Setting the timeout to 0
means that no timeout should be used. In this instance, a Web UI
connection will never time out. That means that the only way to close a
connection is to either manually log out, or use the
“set web command=reset” option. Setting the time to anything over 0
means that after the connection has been idle for the specified seconds,
the connection is closed and the user will be forced to log in again. The
default value is 600 seconds (5 minutes).
command=reset
Used to force the active connection to be closed and require the user, or
any other user, to log in. This is a useful function when a user forgets to
log out.
Examples Set a timeout period of 5 minutes
#> set web timeout=600
Close the currently logged-in session
#> set web command=reset
See also "revert" on page 79. The “revert web” command reverts the “set web”
settings to their default values.