---
title: Set-Cookie Internal Map
description: When creating internal cookies, such as am-auth-jwt and the pre-authentication cookies, this property sets additional attributes by adding text into the Set-Cookie header.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.set.cookie.internal.map
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.set.cookie.internal.map.html
---

# Set-Cookie Internal Map

When creating internal cookies, such as `am-auth-jwt` and the pre-authentication cookies, this property sets additional attributes by adding text into the `Set-Cookie` header.

Specify a key:value map, where the key is the cookie name, and the value is the string to add to the `Set-Cookie` header. If the key is omitted, the value becomes the default for all cookies.

Separate multiple values with a semicolon.

Examples:

* Set the `SameSite` attribute of the `am-auth-jwt` cookie: `org.forgerock.agents.set.cookie.internal.map[am-auth-jwt]=samesite=strict`

* Set the `SameSite` attribute of all cookies: `org.forgerock.agents.set.cookie.internal.map=samesite=strict`

* Set several attributes of `mycookie`: `org.forgerock.agents.set.cookie.internal.map[myCookie]=Max-Age=10000; Domain=.my.default.fqdn`

|                          |                                                                                                                                                          |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.set.cookie.internal.map`                                                                                                           |
| Aliases                  | `org.forgerock.agents.set.cookie.internal.map`   Introduced in Java Agent 5.6.3.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7 |
| Function                 | SameSite                                                                                                                                                 |
| Type                     | Map* Keys: Agent internal cookie name

* Values: (samesite) text to be added to the Set-Cookie header                                                    |
| Bootstrap property       | No                                                                                                                                                       |
| Required property        | No                                                                                                                                                       |
| Restart required         | No                                                                                                                                                       |
| Local configuration file | `AgentConfig.properties`                                                                                                                                 |
| AM console               | Tab: `SSO (from AM 7)`Title: `Set-Cookie Internal Map`                                                                                                   |
