# ​How to Configure Session Policy

Session policy settings control how long sessions stay active and how users can sign in. To make the policy stricter, tighten the limits below.

1. **Idle session timeout** (`session-hours`). Decrease the value to shorten the idle time before the session expires.
2. **One session per user**. Enable it to prevent multiple sessions in the same browser.
3. **One session per user per IP**. Enable it to limit the user to one session per IP address.
4. **Max login attempts before lockout** (`max-login-attempts`). Decrease the value to lock users sooner after failed attempts.
5. **Lockout time** (`max-attempts-timeout-minutes`). Increase the value to keep users locked out longer.
6. **Allowed IP addresses**. Limit access to specific IP addresses.
7. **Blocked IP addresses**. Deny access from specific IP addresses.


---

# Agent Instructions: 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://support.docstudio.com/admin-panel/account-settings/how-to-configure-session-policy.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.
