> ## 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.

# GetSessionInfo

> GetSessionInfo method in the ABBYY FlexiCapture Web Services API returns the user name, computer name, role type, and user ID for a given session.

Gets information about a session.

## Definition

```csharp theme={null}
int GetSessionInfo(int sessionId, out string userName, out string computerName, out int roleType);
```

## Parameters

| Name           | Type         | Description                                                                                            |
| -------------- | ------------ | ------------------------------------------------------------------------------------------------------ |
| `sessionId`    | `int`        | The ID of the session to get information about.                                                        |
| `userName`     | `out string` | The name of the user.                                                                                  |
| `computerName` | `out string` | The name of the user's computer.                                                                       |
| `roleType`     | `out int`    | The type of user role. For possible values, see [RoleType](/flexi-capture/api/structures/t-role-type). |

## Returned value

| Type  | Description |
| ----- | ----------- |
| `int` | User ID.    |
