---
title: Profile Attributes Cookie Maxage
description: Number of seconds before expiration of custom cookies or the pre-authentication cookie, agent-authn-tx.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.sun.identity.agents.config.profile.attribute.cookie.maxage
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.sun.identity.agents.config.profile.attribute.cookie.maxage.html
---

# Profile Attributes Cookie Maxage

Number of seconds before expiration of custom cookies or the pre-authentication cookie, `agent-authn-tx`.

Pre-authentication cookies expire when the first of the following events occurs:

* Authentication completes successfully

* They reach the age configured by this property

If POST data preservation is enabled, the request expires after the time specified in [POST Data Entries Cache Period](com.sun.identity.agents.config.postcache.entry.lifetime.html), which is by default 10 minutes. In this case, consider increasing the value of this property to at least 600 seconds.

Default: `300`

|                    |                                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| Property name      | `com.sun.identity.agents.config.profile.attribute.cookie.maxage`   Introduced in Web Agent 4.x |
| Function           | Cookies                                                                                        |
| Type               | Integer                                                                                        |
| Bootstrap property | No                                                                                             |
| Required property  | No                                                                                             |
| Restart required   | No                                                                                             |
| AM console         | Tab: `Miscellaneous`Title: `Profile Attributes Cookie Maxage`                                  |
