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

# Session

> Session-related SDK configuration and behavior

## Session Configuration

Use `sessionConfig` to control how long user conversations stay active and when a new session should be created.

```ts theme={null}
sessionConfig: {
  inactivityTimeout: 30,  // Minutes before session expires due to inactivity
  maxSessionAge: 2,       // Hours before forcing a new session
  showNotification: true, // Show notification when a new session starts
}
```

## Session Recording

Use `enableSessionRecording` to control whether recording data is uploaded to Dashboard for replay.

```ts theme={null}
enableSessionRecording: true
```

## Related References

* Full type definitions: [Types](/en/sdk/api/types)
* Hook usage patterns: [Hooks](/en/sdk/api/hooks)
* Dashboard-level defaults: [Dashboard Settings](/en/configurations/dashboard-settings)
