> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/access-control/api-and-session-management/session-timeout.md).

# Session Timeout

Session timeout in DuploCloud determines how long a user session remains active before requiring re-authentication. Administrators can configure these settings to enhance security by ensuring users are logged out after a defined period of inactivity.

## Configuring Authorization Token Session Duration

Set how long a user session lasts in the DuploCloud Portal before the user must reauthenticate.

1. In the DuploCloud Portal, navigate to **Administrator** -> **System Settings**.
2. Select the **System Config** tab.
3. Click **Add**. The **Add Config** pane displays.

<div align="left"><figure><img src="/files/yoA61FYJyQcNZfBWVsdb" alt=""><figcaption><p><strong>Add Config</strong> pane</p></figcaption></figure></div>

4. In the **Config Type** list box, select **AppConfig**.
5. In the **Key** list box, select **Authorization token session duration**.
6. In the **Value** field, enter the session timeout duration in minutes.
7. Click **Submit**. Users will be logged out and must reauthenticate after the set amount of time.

## Maximum Kubernetes Session Duration

Set the maximum duration of a Kubernetes session (kubectl shell or K8s dashboard) before reauthentication is required.

1. In the DuploCloud Portal, navigate to **Administrator** -> **System Settings**.
2. Select the **System Config** tab.
3. Click **Add**. The **Add Config** pane displays.

<div align="left"><figure><img src="/files/5RhlztTtJNj8mBQn0Kum" alt="" width="406"><figcaption><p><strong>Add ConAdd Config</strong> pane<strong>fig</strong> pane</p></figcaption></figure></div>

4. In the **Config Type** list box, select **AppConfig**.
5. In the **Key** list box, select **Maximum K8s Session Duration**.
6. In the **Value** field, enter the session timeout duration in minutes.
7. Click **Submit**. Users will be logged out and must reauthenticate after the set amount of time.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/access-control/api-and-session-management/session-timeout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
