> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/design-considerations-and-frameworks/frameworks/general-framework-information/session-timeout.md).

# Session Timeout

## Description

LogicNets has a session timeout mechanism that sets a timeout window when a user logs into an application. The system expires a user's session and logs the user out of an application after that timeout period. A client-side script blanks out the application screen.

When used in relation to framework-based projects, the system must manage the interaction between the parent application—for example, the starter app—and the child application, for example the assessment. The mechanism keeps the parent application active as long as the user continues to interact with the child application.

See [Session Expiry](/release-9/design-considerations-and-frameworks/frameworks/assessment-framework/session-expiry.md) for information on setting the session timeout.

## Authentication Token

The updated expiry mechanism includes an authentication token, which the system shares between the parent and child applications. This token, like the session, also has an expiry window, but the token is refreshed as the user works in the child application. The parent application checks on the authentication token to determine if the session should be expired. The authentication expiration window is session timeout + refresh frequency.

## Authentication Token Update Frequency

The call from the system to refresh the authentication token is an expensive call, especially if the authentication token is stored with an external IDP. Therefore, the expiration mechanism includes the concept of an update frequency. This minimizes updates to the authentication token.

The system refreshes the authentication token when a request comes in after the update-frequency window has been passed but the system is still within the expiry limit of the authentication token. It also refreshes the token when the user switches between the applications, as this is considered implicit login.

## Session Expiry with Remote/External IdP

When the user is authorized via remote/external IdP, the Access Token supplied by the remote IdP can expire. At this time, the local session will also be expired, unless it is refreshed using the remote IdP Refresh Token.

Important Notes:

* Watchout that the LogicNets session timeout and IdP session timeout are set according to desired effect - the automatic log out will occur only after the longer of the two timeout settings.
* Not all IdPs will revoke the refresh token when a user logs out. The IdPs each have their own policies on token expiry. For example, Microsoft refresh tokens are expired after 24 hours. (see [Refresh tokens in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn](https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens)).


---

# 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://community-test.logicnets.com/release-9/design-considerations-and-frameworks/frameworks/general-framework-information/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.
