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

# Session Timeout Flow

> CometChat Calling SDK v4 - Stable Release - Session Timeout for React Native

Available since v4.2.0

## Overview

CometChat Calls SDK provides a mechanism to handle session timeouts for idle participants. By default, if a participant is alone in a call session for 180 seconds (3 minutes), the following sequence is triggered:

1. After 120 seconds of being alone in the session, the participant will see a dialog box

2. This dialog provides options to either:

   * Stay in the call
   * Leave immediately

3. If no action is taken within the next 60 seconds, the call will automatically end

This feature helps manage inactive call sessions and prevents unnecessary resource usage.

<Note>
  You can customize the idle timeout period using `setIdleTimeoutPeriod(seconds)` in the `CallSettingsBuilder`. See the [Call Session settings](/calls/v4/react-native/call-session#call-settings) for details.
</Note>

### Session Timeout Flow

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b/9FGX8Tc2_4uC9Dcf/images/d75ea5ed-diagram-afa10cae2acad94dee0d7c69275fd544.svg?fit=max&auto=format&n=9FGX8Tc2_4uC9Dcf&q=85&s=cd246dd4b9dc9fb5faa14a28c840969c" width="600" height="630" data-path="images/d75ea5ed-diagram-afa10cae2acad94dee0d7c69275fd544.svg" />
</Frame>

<Tip>
  The `onSessionTimeout` event is triggered when the call automatically terminates due to session timeout, as illustrated in the diagram above.
</Tip>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Call Session" icon="video" href="/calls/v4/react-native/call-session">
    Start and manage call sessions with full configuration options
  </Card>

  <Card title="Ringing" icon="phone-volume" href="/calls/v4/react-native/ringing">
    Implement a complete calling experience with incoming and outgoing call UI
  </Card>
</CardGroup>
