The serviceLib.endStatefulServiceSession() system function ends the HTTP session being used by a service. The action releases runtime resources; specifically, the resources used to access EGL REST-RPC services that in turn access UI programs or stateful IBM® i programs.
For details on UI programs, see “UI program and the gateway interface.” For details on a means of accessing IBM i called programs and service programs, see “Accessing IBM i programs as web services: overview.”
serviceLib.endStatefulServiceSession(variable Service | Interface in, exceptionHandler FunctionReference)