> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-web/componentes/sdk-provider/eventos/emitsessionid.md).

# emitSessionId

## Details

Notifies the session identifier as soon as it is created.

**Event:** `emitSessionId`

**Type:** `FacephiSdkProviderCustomEvent<string>` | `CustomEvent<string>`

### Syntax

```typescript
provider.addEventListener('emitSessionId', onEmitSessionId);
```

### Received object

```json
detail: string
```

## Description

Allows you to associate the SDK's current session with your system.

***

## Example

```jsx
<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    onEmitSessionId={onEmitSessionId}
/>
```
