---
title: "Manage infobase user sessions"
sidebar_label: "Manage user sessions"
sidebar_position: 3
description: "How to view the session list, terminate one or all sessions, and remove or set user session locks for an infobase"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import {CustomTable} from '@selectel/docux/components'
import TrashIcon from '@selectel/docux/icons/trash'

# Manage infobase user sessions

You can manage infobase user sessions in the Control panel:

* [view the session list](#see-sessions-list);
* [terminate one or all sessions](#end-one-or-all-sessions);
* [set a session lock](#set-lock);
* [remove a session lock](#remove-lock).

You can also [manage 1C server cluster sessions](/cloud-1c/cluster/manage-cluster-user-sessions.mdx) — view the session list for all infobases in the cluster and terminate one or all sessions.

## View session list \{#see-sessions-list}

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **Managed 1C Cloud**.
2. Go to the **Infobases** section.
3. Open the infobase page → **Session Management** tab.
4. View the session list. The following is displayed for each session:

   <CustomTable>
     <table>
       <tbody>
         <tr>
           <th>User</th><td>1C username</td>
         </tr>

         <tr>
           <th>Connection type</th><td>Infobase user type — client application, external connection, background job, or web service call</td>
         </tr>

         <tr>
           <th>Start time</th><td>Session start time in `timestamp` format</td>
         </tr>

         <tr>
           <th>Last activity</th><td>User's last activity time</td>
         </tr>

         <tr>
           <th>Sleeping</th><td>Whether the session is in sleep mode</td>
         </tr>

         <tr>
           <th>Session number</th><td>Session number</td>
         </tr>

         <tr>
           <th>Client IP address</th><td>Client IP address from which the connection is established</td>
         </tr>

         <tr>
           <th>CPU time, sec</th>

           <td>
             CPU time used:

             * `Current` — by the current incomplete server call; ;
             * `5 min` — by completed session server calls over the last 5 minutes; ;
             * `Total` — by completed session server calls for the entire session duration
           </td>
         </tr>

         <tr>
           <th>Memory consumption</th>

           <td>
             Byte difference between memory allocated and deallocated:

             * `Current` — by the thread executing the current call, since the call started; ;
             * `5 min` — threads that executed completed session calls over the last 5 minutes;
             * `Total` — by threads that executed completed session calls for the entire session duration
           </td>
         </tr>

         <tr>
           <th>Data volume</th>

           <td>
             Volume of data transferred in completed session server calls:

             * `5 min` — over the last five minutes; ;
             * `Total` — for the entire session duration
           </td>
         </tr>

         <tr>
           <th>Call count</th>

           <td>
             Number of completed server calls for this session:

             * `5 min` — over the last five minutes; ;
             * `Total` — for the entire session duration
           </td>
         </tr>

         <tr>
           <th>DBMS data</th>

           <td>
             Volume of data transferred during the session between the 1C server cluster and the database:

             * `5 min` — over the last five minutes; ;
             * `Total` — for the entire session duration
           </td>
         </tr>
       </tbody>
     </table>
   </CustomTable>

## Terminate one or all sessions \{#end-one-or-all-sessions}

1. In the [Control panel](https://my.selectel.ru/ones/base), on the top menu, click **Products** and select **Managed 1C Cloud**.
2. Go to the **Infobases** section.
3. Open the infobase page → **Session Management** tab.
4. To terminate a single session, click <TrashIcon /> in the session row and confirm the termination. You can find the required session by username by starting to enter the name in the field above the session list.
5. To terminate all sessions, click **Terminate all sessions** and confirm the termination.

## Set a session lock \{#set-lock}

When session locking is enabled for an infobase, active users of the database will receive a prompt to save their data, and their sessions will be terminated. You will not be able to connect to the infobase until the specified lock end time is reached or until you [remove the lock](#remove-lock).

In the Control panel, you cannot see whether a session lock is currently enabled for an infobase. If a session lock is already active for an infobase and you set a new one, the previous lock will be reset.

You can view active locks using the cluster administration utility; to do this, use the [Viewing infobase properties](https://its.1c.ru/db/v8325doc#bookmark:cs:TI000000164) instruction in the 1C documentation.

1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Cloud**.
2. Go to the **Infobases** section.
3. Open the infobase page → **Configuration** tab.
4. In the **Support and maintenance** block, in the **User sessions** row, click **Set lock**.
5. Enter the lock start date and time (UTC+3). If you do not specify a start date and time, the lock will be set immediately.
6. Enter the date and time for the lock to end. If you do not specify a date and time for the end, the infobase will remain locked until you [remove the lock](#remove-lock).
7. Optional: enter a message that will be displayed when someone tries to connect to the locked infobase.
8. Optional: enter a lock parameter—arbitrary text. It will be set as a parameter of the `SessionLock` object.
9. Optional: to allow [connecting](/cloud-1c/connect/connect-to-1c.mdx) to a locked infobase, enter an authorization code—any set of letters and numbers. The authorization code must be specified when connecting to the locked infobase in the connection string parameter `UC` or the command-line parameter `/UC`, for example `/UC123456`.
10. Click **Next**.
11. Enter the username and password of an infobase user with administrator rights.
12. Click **Set**.

## Remove a session lock \{#remove-lock}

Once you remove the lock, users will be able to connect to the infobase again.

1. In the [Control panel](https://my.selectel.ru/ones/base), click **Products** in the top menu and select **1C Cloud**.
2. Go to the **Infobases** section.
3. Open the infobase page → **Configuration** tab.
4. In the **Support and maintenance** block, in the **User sessions** row, click **Remove lock**.
5. Enter the username and password of an infobase user with administrator rights.
6. Click **Remove**.

<Formbricks />
