---
title: Managing sessions
description: For information about IG sessions, see Sessions. Change IG session properties in the following ways:
component: pinggateway
version: 7.2
page_id: pinggateway:maintenance-guide:managing-sessions
canonical_url: https://docs.pingidentity.com/pinggateway/2026/maintenance-guide/managing-sessions.html
llms_txt: https://docs.pingidentity.com/pinggateway/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2022-04-25T11:18:53Z
superseded_by: https://docs.pingidentity.com/pinggateway/2026/maintenance-guide/managing-sessions.html
---

# Managing sessions

For information about IG sessions, see [Sessions](../gateway-guide/about.html#about-sessions). Change IG session properties in the following ways:

| Mode                                                         | To change the session properties                                                                                                                                                                                                                                                                                                                               |
| ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Stateless sessions in standalone mode and web container mode | Configure the [JwtSession](../reference/JwtSession.html) object in the route that processes a request, or in its ascending configuration.For example, define the `cookie` property to configure the IG session name.```json
{
  "name": "JwtSession",
  "type": "JwtSession",
    "config": {
      "cookie": {
        "name": "MY_SESSIONID"
    }
  }
}
``` |
| Stateful sessions in standalone mode                         | Change the `session` property in `admin.json`, and restart IG.For example, add the following lines to `admin.json` to configure the IG session name:```json
"session": {
    "cookie": {
      "name": "MY_SESSIONID"
    }
  }
```                                                                                                                            |
| Stateful session in web container mode                       | Change the configuration for the session cookie in the container, and restart IG.For example, add the following lines in Tomcat's `/path/to/tomcat/webapps/ROOT/WEB-INF/web.xml` to configure the IG session name:```xml
<session-config>
  <cookie-config>
    <name>MY_SESSIONID</name>
...
```                                                              |
