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

## What it does

Gets information about a session.

## Definition

```
int GetSessionInfo( int sessionId, out string userName, out string computerName, out int roleType );
```

## Parameters

| **Name**     | **Type**   | **Description**                                                                                       |
| ------------ | ---------- | ----------------------------------------------------------------------------------------------------- |
| sessionId    | int        | The ID of the session about which information is to be retrieved                                      |
| 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. See [RoleType](/flexi-capture/api/structures/t-role-type) for possible values. |

## Returned value

| **Type** | **Description** |
| -------- | --------------- |
| int      | User ID         |
