You are viewing the documentation for a prerelease version.

View Latest

Manage Sessions

User-sessions with Couchbase Web Console can be timed out, following a specified period of user-inactivity.

Examples on This Page

The examples on this page indicate how to manage sessions by means of the UI and REST API respectively. Sessions cannot be managed with the CLI.

Manage Sessions with the UI

Proceed as follows:

  1. Access the Security screen of Couchbase Web Console, by left-clicking on the Security tab, in the right-hand navigation bar:

    accessSecurityScreen

    This brings up the Security screen, which appears as follows:

    securityView
  2. Access the Sessions display, by left-clicking on the Sessions tab, on the upper, horizontal control-bar:

    sessionsTab

    This displays the Sessions panel, which appears as follows:

    sessionsPanelInitial

The interactive pane accepts integers, representing minutes of user-inactivity that are allowed to elapse before the user-session times out, and the login screen is displayed. Either enter the required number of minutes with the keyboard, or use the interactive control:

sessionTimeoutPanelwithChange

Note that 0 seconds, which is the default, specifies that no timeout is applied.

Manage Sessions with the REST API

Use the /settings/security URI, with the uiSessionTimeout flag specifying the number of seconds to elapse, as follows:

curl -X POST -u Administrator:password \
http://10.142.181.101:8091/settings/security \
-d "uiSessionTimeout=600"