---
title: Enable Load Balancer Cookies
description: When true, the agent writes load balancer cookies each time it invokes AM.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.load.balancer.cookies.enabled
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.load.balancer.cookies.enabled.html
---

# Enable Load Balancer Cookies

When `true`, the agent writes load balancer cookies each time it invokes AM.

Use this property with [Load Balancer Cookie Name](org.forgerock.agents.load.balancer.cookie.name.html) to improve performance. Load balancer cookies can reduce the number of calls that different AM instances make to the Core Token Service (CTS).

Because the agent invokes AM to log out a user, it creates a load-balancer cookie on logout. To remove these cookies on logout, add them to the [Reset Cookie List](org.forgerock.agents.cookie.reset.name.list.html).

|                          |                                                                                                                                                                |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.load.balancer.cookies.enabled`                                                                                                           |
| Aliases                  | `org.forgerock.agents.load.balancer.cookies.enabled`   Introduced in Java Agent 5.8.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7.1 |
| Function                 | Cookie                                                                                                                                                         |
| Type                     | Boolean: `true` returns true; all other strings return `false`.                                                                                                |
| Default                  | `false`                                                                                                                                                        |
| Bootstrap property       | No                                                                                                                                                             |
| Required property        | No                                                                                                                                                             |
| Restart required         | No                                                                                                                                                             |
| Local configuration file | `AgentConfig.properties`                                                                                                                                       |
| AM console               | Tab: `Global (from AM 7.1)`Title: `Enable Load Balancer Cookies`Legacy title: `Load Balancer Cookie Enabled`                                                   |
