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

# Sessions

> How long team members stay logged in to Theymes, and how to set a maximum session lifetime and idle timeout for your company.

When a team member logs in to Theymes, they get a session. While they keep using Theymes, the session is extended automatically, so they are not logged out in the middle of their work.

Two limits decide when a session ends:

| Limit | What it does | Default |
| - | - | - |
| Maximum session lifetime | The longest a session can last after logging in, even if the team member is active the whole time. | 30 days |
| Idle timeout | How long a session lasts without the team member using Theymes. | 72 hours |

A session ends when either limit is reached, whichever comes first. After that, the team member has to log in again.

## Configure session limits

You need permission to manage company settings.

1. Go to **Settings** → **Security** → **Sessions**.
2. Enter a **Maximum session lifetime** in days (1–90), an **Idle timeout** in hours (1–720), or both.
3. Click **Save**.

Each field shows the limit currently in use. Select **Reset to default** to go back to the default. You can set limits that are shorter or longer than the defaults. The idle timeout can't be longer than the maximum session lifetime.

Changes apply the next time a session is extended, usually within a few minutes for team members who have Theymes open. Team members don't need to log in again for the change to apply, unless their session is already older than the new maximum lifetime.

## Team members in several companies

When a team member belongs to more than one company, the strictest limits apply. Theymes uses the shortest maximum session lifetime and the shortest idle timeout across all of their companies. A company that hasn't configured a limit counts with the default, so longer limits only apply when every company of the team member allows them.

## When a session expires

Shortly before the maximum session lifetime is reached, Theymes shows a warning so the team member can log in again at a convenient moment.

When a session expires while Theymes is open, Theymes shows a message that the session has expired, with a button to log in again. After logging in, the team member returns to the page they were on.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.