---
title: Max Age of Pre-Authentication Cookie
description: The maximum age in seconds of the pre-authentication cookie configured in Pre-Authentication Cookie Name.
component: java-agents
version: 2025.11
page_id: java-agents:properties-reference:org.forgerock.agents.authn.cookie.max.age.seconds
canonical_url: https://docs.pingidentity.com/java-agents/2025.11/properties-reference/org.forgerock.agents.authn.cookie.max.age.seconds.html
---

# Max Age of Pre-Authentication Cookie

The maximum age in seconds of the pre-authentication cookie configured in [Pre-Authentication Cookie Name](org.forgerock.agents.authn.cookie.name.html).

|                          |                                                                                                                                                               |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Property name            | `org.forgerock.agents.authn.cookie.max.age.seconds`                                                                                                           |
| Aliases                  | `org.forgerock.agents.authn.cookie.max.age.seconds`   Introduced in Java Agent 5.6.3.0   [Recognized](preface.html#how_am_manages_multiple_aliases) from AM 7 |
| Function                 | Cookie, Pre-authentication                                                                                                                                    |
| Type                     | Integer                                                                                                                                                       |
| Default                  | `600`                                                                                                                                                         |
| Bootstrap property       | No                                                                                                                                                            |
| Required property        | No                                                                                                                                                            |
| Restart required         | No                                                                                                                                                            |
| Local configuration file | `AgentConfig.properties`                                                                                                                                      |
| AM console               | Tab: `Global (from AM 7)`Title: `Max Age of Pre-Authentication Cookie`Legacy title: `Pre-Authenticated Cookie Max Age`                                        |
