---
title: Enable Cookie Security
description: When true, the agent marks cookies as secure, sending them only if the communication channel is secure. Set to true when agent connections are over SSL.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.sun.identity.agents.config.cookie.secure
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.sun.identity.agents.config.cookie.secure.html
---

# Enable Cookie Security

When `true`, the agent marks cookies as secure, sending them only if the communication channel is secure. Set to `true` when agent connections are over SSL.

Default: `false`

|                    |                                                                              |
| ------------------ | ---------------------------------------------------------------------------- |
| Property name      | `com.sun.identity.agents.config.cookie.secure`   Introduced in Web Agent 4.x |
| Function           | Cookies                                                                      |
| Type               | Integer                                                                      |
| Bootstrap property | No                                                                           |
| Required property  | No                                                                           |
| Restart required   | No                                                                           |
| AM console         | Tab: `SSO`Title: `Enable Cookie Security`                                    |
