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

# Session security

> Control how long sign-ins last, sign out unused sessions, limit where people sign in from, and catch sessions that look stolen.

Once someone is signed in, Aiveth by Gooclaim keeps checking their session. This page covers the controls your organization sets for that:

* **Session length** and **idle sign-out**
* **Network rules**: the IP allowlist and **country rules**
* **Session watch**, for sessions that look stolen
* **Device-bound sessions** in supported browsers

All of these are under **Security** in the console. You need the `security:manage` permission to change them, and your organization's Owners are emailed about every change.

## Session length and idle sign-out

Go to **Security** → **Sessions**.

| Setting | Choices | Default |
| - | - | - |
| **Sign everyone out after** | 1, 4, 8 or 12 hours | 12 hours |
| **Sign out when unused for** | 5, 10, 15 or 30 minutes | 30 minutes |

* **Session length** is a hard end. Activity and refreshes never extend it. After it, the person signs in again. It applies to every sign-in Aiveth starts for your people: password, email code, passkey and phone.
* **Idle sign-out** ends a session that has had no activity for longer than your setting. You can only make it shorter than 30 minutes.
* Sessions already running keep the end they started with.

When a session ends this way, Aiveth tells the apps that used it. See [Logout](https://docs.aiveth.com/apps/logout.md).

## Network rules

Every sign-in path checks your network rules before anything else: password, email code, passkey, phone, Google, Microsoft, GitHub and single sign-on.

### IP allowlist

If your organization has an IP allowlist, sign-ins from addresses outside it are refused, before the password is checked.

### Country rules

Go to **Security** → **Country rules** and choose:

| Choice | Meaning |
| - | - |
| **Anywhere** (default) | No country rule. |
| **Only these countries** | People may sign in only from the countries you add. |
| **Everywhere except these** | People may never sign in from the countries you add. |

You can add up to 250 countries.

* Country rules are checked at every sign-in **and** each time a session is used. A session carried to a refused country ends there.
* The country is a guess from the IP address. A VPN can hide it. An address that cannot be placed, such as a private network, is let through, so a missing lookup never locks everyone out.
* **Only these countries** must include the country you are in now, so you cannot lock yourself out with one click.
* [Emergency accounts](https://docs.aiveth.com/sign-in/single-sign-on.md#emergency-accounts) are never refused by country rules.

## Session watch

Session watch looks for a session that suddenly moves somewhere else, which often means it was copied.

> [!NOTE]
>
> Available on the Business plan and above.

Go to **Security** → **Session watch** and pick an action for each rule:

| Rule | Default |
| - | - |
| **Used from another country** | Ask them to confirm it's them |
| **Used from another browser** | Sign that session out |

| Action | What happens |
| - | - |
| **Do nothing** | No action. |
| **Tell them and the admins** | One activity log entry, an email to the person and an admin alert, once per session and change. |
| **Ask them to confirm it's them** | The same, and the person must pass **Confirm it's you** (two-step code or passkey) before the session goes on. If they have neither, the session ends. |
| **Sign that session out** | The same, and the session ends. Its apps are told. |

When both rules match, the stronger action wins.

* The baseline is the browser and country the session signed in from, or where the person last confirmed it.
* A new IP address in the same country is normal and is never counted.
* A sign-in from a browser Aiveth cannot name has no browser baseline.

## Device-bound sessions

In browsers that support Device Bound Session Credentials (DBSC), such as Chrome on Windows and macOS, Aiveth ties the person's session to a key that stays on their device.

* Aiveth offers binding automatically when someone signs in. There is nothing to turn on.
* Once bound, the browser's sign-in cookie is swapped for short tokens that last 10 minutes. The browser proves it holds the key to get each new one.
* A bound session accepts **only** these short tokens. A longer token copied from the device before binding is refused.
* If the session ends or the binding is gone, the browser is told to stop, and the person signs in again.
* Browsers without DBSC keep working as before, and session watch still guards them.

## Related

* [Attack protection](https://docs.aiveth.com/sign-in/attack-protection.md)
* [Step-up and remembered devices](https://docs.aiveth.com/sign-in/step-up-and-remembered-devices.md)
* [Admin alerts](https://docs.aiveth.com/events/admin-alerts.md)


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