> 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

Configure session timeout for DuploCloud users

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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FTsoTFNfOy5DzCF8ZUKZt%2FScreenshot%20(73).png?alt=media&amp;token=f74a3fe5-45bd-41d1-9663-b402488f3eb9" 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="https://2471407984-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F68cb0s9ce5UIUKWPuYs8%2Fuploads%2FGgJm147vB59fNaoCE03Z%2FScreenshot%20(1090).png?alt=media&amp;token=8160b59e-ec29-4036-8776-a45d44bfdfc6" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
