User sessions are accessed through session IDs (like JSESSIONID in Tomcat), which contain a reference to session information.
IDs must be transferred by the browser, so that the application can link the HTTP request and the associated user session together.
The transfer of these IDs is managed through use of browser cookies.
Each time a request is sent to C-EMS a new context is created. It contains all the relevant information required to process the request.
The CONTEXTID is based on the session ID.
The standard template is: [JSESSIONID]_[contextName]
In most cases, contextName value is “default” but in the following situations:
A sequence is executed within a given C-EMS context. It can itself transparently call other requests through TransactionStep and SequenceStep steps.
A request initiated by a sequence cannot be executed within the same initial sequence context and therefore requires another context.
Globally, a sequence:
NB: it is also possible to specify a particular context name for a transaction request processing instead of using the default generated name. This allows, within the same session, two different sequences initiating transaction request on the same context. In that case, the “Context” property of the TransactionStep object must be supplied and CONTEXTID value is [JSESSIONID]_XXXX (with Context = XXXX).*
All the contexts created during sequence execution are automatically removed, but those with a specified name (e.g. not automatically generated).