defaultSessionCookieID

The defaultSessionCookieID build descriptor option identifies the session cookie provided by a service. The default value is JSESSIONID, which is always the session ID when your application runs on Apache Tomcat.

The setting of defaultSessionCookieID is meaningful only in the following case:
  • The service logic in this case is stateful, which means that the requester and service can participate in a multistep conversation.
  • The service is an EGL external type that makes an IBM® i called program or service program available as an EGL REST-RPC service.
You can override the value of defaultSessionCookieID by setting sessionCookieID in the service binding:
  • When you declare a service-access variable, as described in Declaring a variable to access a REST service; or
  • When you configure the deployment descriptor, as described in Adding a REST binding to the deployment descriptor.

For background information, see Accessing IBM® i programs as web services: overview.