# IRPCLogin.SetOpenSessionCheck

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/SetOpenSessionCheck/

Badges: `Vault API / core` `session` `session`

Sets whether administrators are warned about this session when they take the vault offline or do
other maintenance.

- **Service:** [Login and sessions](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/index.md) `MFiles.IRPCLogin`
- **gRPC method:** `/MFiles.IRPCLogin/SetOpenSessionCheck`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/set-open-session-check`
- **Request:** [`SetOpenSessionCheckRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/SetOpenSessionCheck/index.md#request)
- **Response:** [`SetOpenSessionCheckResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLogin/SetOpenSessionCheck/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** session
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

Sessions are included in the check by default. A background service that can safely be
disconnected may turn it off. Has no effect on what the session can do.

<a id="request"></a>

## Request: SetOpenSessionCheckRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `make_open_session_check` | `bool` | True if the check is made (default). If the check is disabled the administrator does not get a warning that this session is open when the vault is set to offline mode for example. |

<a id="response"></a>

## Response: SetOpenSessionCheckResponse

No fields.
