Identity Gateway 7.2

Managing sessions

For information about IG sessions, see 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 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.

{
  "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:

"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:

<session-config>
  <cookie-config>
    <name>MY_SESSIONID</name>
...