---
title: Enable Attribute Encoding
description: When true, attribute values are URL-encoded before being set as a cookie.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.attribute.cookie.encode.enabled
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.attribute.cookie.encode.enabled.html
---

# Enable Attribute Encoding

When `true`, attribute values are URL-encoded before being set as a cookie.

|                          |                                                                                                                                                                                                                                                     |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.attribute.cookie.encode.enabled`                                                                                                                                                                                              |
| Aliases                  | `com.sun.identity.agents.config.attribute.cookie.encode`   Introduced in Java Agent 5.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 6`org.forgerock.agents.attribute.cookie.encode.enabled`   Introduced in Java Agent 5.6 |
| Function                 | Attributes                                                                                                                                                                                                                                          |
| 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`                                                                                                                                                                                                                            |
| AM console               | Tab: `Application`Title: `Enable Attribute Encoding`Legacy title: `Attribute Cookie Encode`                                                                                                                                                         |
