---
title: Cookie Reset
description: When true, the agent resets the cookies in the response before redirecting the client for login, and when the client logs out.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.cookie.reset.enabled
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.cookie.reset.enabled.html
---

# Cookie Reset

When `true`, the agent resets the cookies in the response before redirecting the client for login, and when the client logs out.

The agent resets the cookies listed in [Reset Cookie List](org.forgerock.agents.cookie.reset.name.list.html), and cookies that store profile or session attributes (when [Profile Attribute Fetch Mode](org.forgerock.agents.profile.attribute.fetch.mode.html) or [Session Attribute Fetch Mode](org.forgerock.agents.session.attribute.fetch.mode.html) has the value `HTTP_COOKIE`).

To reset cookies that store response attributes (when [Response Attribute Fetch Mode](org.forgerock.agents.response.attribute.fetch.mode.html) has the value `HTTP_COOKIE`), add them to the [Reset Cookie List](org.forgerock.agents.cookie.reset.name.list.html).

|                          |                                                                                                                                                                                                                                      |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Property name            | `org.forgerock.agents.cookie.reset.enabled`                                                                                                                                                                                          |
| Aliases                  | `org.forgerock.agents.cookie.reset.enabled`   Introduced in Java Agent 5.6`com.sun.identity.agents.config.cookie.reset.enable`   Introduced in Java Agent 5.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 6 |
| Function                 | Cookie reset                                                                                                                                                                                                                         |
| 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: `SSO`Title: `Cookie Reset`                                                                                                                                                                                                      |
