---
title: POST Data Sticky Load Balancing Mode
description: Whether to create a cookie, or to append a query string to the URL to assist with sticky load balancing:
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.sun.identity.agents.config.postdata.preserve.stickysession.mode
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.sun.identity.agents.config.postdata.preserve.stickysession.mode.html
---

# POST Data Sticky Load Balancing Mode

Whether to create a cookie, or to append a query string to the URL to assist with sticky load balancing:

* `COOKIE`: The agent creates a cookie with the value specified in [POST Data Sticky Load Balancing Value](com.sun.identity.agents.config.postdata.preserve.stickysession.value.html).

* `URL`: The agent appends the value specified in [POST Data Sticky Load Balancing Value](com.sun.identity.agents.config.postdata.preserve.stickysession.value.html) to the URL query string.

|   |                                                                                                 |
| - | ----------------------------------------------------------------------------------------------- |
|   | If this property is defined in `agent.conf`, it overrides the property in the AM configuration. |

Default: Empty

|                    |                                                                                                     |
| ------------------ | --------------------------------------------------------------------------------------------------- |
| Property name      | `com.sun.identity.agents.config.postdata.preserve.stickysession.mode`   Introduced in Web Agent 4.x |
| Function           | Load balancing                                                                                      |
| Type               | String                                                                                              |
| Bootstrap property | No                                                                                                  |
| Required property  | No                                                                                                  |
| Restart required   | No                                                                                                  |
| AM console         | Tab: `Advanced`Title: `POST Data Sticky Load Balancing Mode`                                        |
