---
title: Change the session cookie name
description: By default, the session cookie name is iPlanetDirectoryPro.
component: pingam
version: 7.2
page_id: pingam:security-guide:change-name-of-SSO-cookie
canonical_url: https://docs.pingidentity.com/pingam/8.1/security/change-name-of-SSO-cookie.html
llms_txt: https://docs.pingidentity.com/pingam/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
superseded_by: https://docs.pingidentity.com/pingam/8.1/security/change-name-of-SSO-cookie.html
---

# Change the session cookie name

By default, the session cookie name is `iPlanetDirectoryPro`.

You must change this value to something unique in your environment that does not give away its contents. Do not use names such as `sessionCookie`.

|   |                                                                                                                                           |
| - | ----------------------------------------------------------------------------------------------------------------------------------------- |
|   | If you change the name of the cookie on a production system, you are invalidating the sessions of any user that still had a valid cookie. |

1. In the AM admin UI, go to Configure > Server Defaults > Security > Cookie.

2. Change the name in the Cookie Name field.

3. Click Save Changes.

4. Restart AM or the container where it runs.

Note that Web agents need to know the name of the session cookie. You must change this configuration when you change the name of the session cookie in AM. For more information, check the `com.sun.identity.agents.config.cookie.name` property in the [ForgeRock Web Agents Reference](https://docs.pingidentity.com/web-agents/2024.11/properties-reference/com.sun.identity.agents.config.cookie.name.html).
