---
title: Always invalidate sessions
description: When false, the agent does not invoke the AM REST logout endpoint to kill the user session.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.config.logout.session.invalidate.enabled
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.config.logout.session.invalidate.enabled.html
---

# Always invalidate sessions

When `false`, the agent does not invoke the AM REST logout endpoint to kill the user session.

If [Conditional Logout URL List](org.forgerock.agents.conditional.logout.url.list.html) is configured with a URL that does not perform a REST logout to AM, set this property to `true`. The agent additionally invokes the AM REST logout endpoint to invalidate the session.

|                          |                                                                                                                                                                                            |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Property name            | `org.forgerock.agents.config.logout.session.invalidate.enabled`                                                                                                                            |
| Aliases                  | `org.forgerock.agents.config.logout.session.invalidate.enabled`   Introduced in Java Agent 5.10.1`org.forgerock.agents.config.logout.session.invalidate`   Introduced in Java Agent 5.10.1 |
| Function                 | Logout                                                                                                                                                                                     |
| Type                     | Boolean: `true` returns true; all other strings return `false`.                                                                                                                            |
| Default                  | `true`                                                                                                                                                                                     |
| Bootstrap property       | No                                                                                                                                                                                         |
| Required property        | No                                                                                                                                                                                         |
| Restart required         | No                                                                                                                                                                                         |
| Local configuration file | `AgentConfig.properties`                                                                                                                                                                   |
