> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CloseSession

> CloseSession method in the ABBYY FlexiCapture Web Services API closes a previously opened connection to the Application Server using its session ID.

## What it does

Closes a previously opened connection to the Application Server.

## Definition

```
void CloseSession( int sessionId );
```

## Parameters

| **Name**  | **Type** | **Description**                                                 |
| --------- | -------- | --------------------------------------------------------------- |
| sessionId | int      | The ID of the connection to the Application Server to be closed |

## Returned value

None.
